Actions
Task #28669
closedOptimizations for IPv6-functions in t3lib_div
Start date:
2011-08-02
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
- speedup: use IPv6-support from PHP if present (usually enabled; fallback present)
- since there is IPv6Hex2Bin(), also add IPv6Bin2Hex()
- since there is normalizeIPv6(), also add compressIPv6()
- normalization also involves converting to lowercase
- lowercase recommended according to RFC
- common case needed for string-comparisons to work as expected
- checking for strlen(...) of 39 (length of already normalized IPv6) should be done in normalizeIPv6() and not all other functions trying to find out if they need to call normalizeIPv6() or not
- extend unit-tests
Actions