[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:19:52 +0000 (13:19 +0200)
commitadcf60846a994d5fe1b47f78dda0720ca272dfbc
tree44756b2c5f82a3658f2564708fa3d21efda55eb6
parent470aeb3f9296d4827ebf1da224e3080f82f31f89
[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: I816db2b9ce42d13f61ecd7f87406730c424de52f
Resolves: #27210
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/2519
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
t3lib/class.t3lib_div.php
tests/t3lib/class.t3lib_divTest.php