[BUGFIX] cmpIPv4: prevent E_NOTICE, cleanup compare, testcases
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 6 Jun 2011 00:17:33 +0000 (02:17 +0200)
committerTolleiv Nietsch <info@tolleiv.de>
Tue, 6 Mar 2012 19:40:24 +0000 (20:40 +0100)
commit413f0fab0f576fe311c40c212625841144185e37
tree5e8b3700ab2af607afeda493f466224e93c5620b
parentf49b51cfdf53315939d04a7ac6692ea48d22f81e
[BUGFIX] cmpIPv4: prevent E_NOTICE, cleanup compare, testcases

Cleanup for an E_NOTICE on exploding the bitmask.
Replaced (correct working, but "unreadable") strcmp().
Add testcases.

Change-Id: I99c7007e11cd3c9740ab6acfd770dd2ea8cd1545
Resolves: #27230
Releases: 4.3, 4.4, 4.5, 4.6
Reviewed-on: http://review.typo3.org/7129
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
t3lib/class.t3lib_div.php
tests/t3lib/t3lib_divTest.php