* Removed redundant check in toUnsigned6().
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 12 Nov 2010 19:37:37 +0000 (19:37 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 12 Nov 2010 19:37:37 +0000 (19:37 +0000)
commit426f30bcfe198dbc3e2bbb7e647dd0e3a30d3bba
treeeb7fb632a57d5bba603f2936208f7237f7119d88
parent13353d931624ac10d0a01ea1fd905efe9d487ab1
* Removed redundant check in toUnsigned6().
* MW requires PHP 5.1+, so the -1/false ip2long annoyance is gone. Also, ip2long("255.255.255.255") is -1 so no special case code is needed anymore.
* Removed toSigned() (not used outside IP.php). Due to the above points, ip2long() is totally equilivant.
* Moved some functions and consts around.
* Comment tweaks.
includes/IP.php
maintenance/tests/phpunit/includes/IPTest.php