[BUGFIX] t3lib_div::cmpIPv6() fails to compare
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 4 Jun 2011 18:25:37 +0000 (20:25 +0200)
committerXavier Perseguers <typo3@perseguers.ch>
Tue, 12 Jul 2011 11:20:56 +0000 (13:20 +0200)
commit069fc9285cae9dc2fb93e5f989ea9ac89b277c7d
tree6b5730bef559c3a7d9c58563fa033a5ad453cef3
parentf569cfba1035f2441d3283c9304ac8aef3be81e7
[BUGFIX] t3lib_div::cmpIPv6() fails to compare

cmpIPv6 makes wrong assumptions about the output of IPv6Hex2Bin().
Also currently only netmasks of /48, /64 and /128 are supported.

Added a cleanup for an E_NOTICE on exploding the bitmask.
Replaced IPv6Hex2Bin() with php function (same output, just quicker).
Added testcases.

Change-Id: Ida5ac146942c5f7d407f233206ccad6e3c9c6c58
Resolves: #27210
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/3268
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
t3lib/class.t3lib_div.php
tests/t3lib/t3lib_divTest.php