[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)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Sun, 7 Aug 2011 10:39:30 +0000 (12:39 +0200)
commit2329466c67a0a133c525567c79cd263819566151
treea48bf7ba59fc8698d32065f3b0d3b0c8c9f4129a
parentb5d2ddcb498d053f39196bd8c748bae50f9d628b
[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: I3836d3c53ab6093e3427047c4a5089778dd04ca2
Resolves: #27230
Releases: 4.3, 4.4, 4.5, 4.6
Reviewed-on: http://review.typo3.org/2536
Reviewed-by: Björn Pedersen
Tested-by: Björn Pedersen
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
t3lib/class.t3lib_div.php
tests/t3lib/class.t3lib_divTest.php