Bug #66229 [NEW]: 128.0.0.0/16 isn't reserved any longer.
| From: | georgestephanis at automattic dot com | Date: | Tue, 03 Dec 2013 22:20:04 +0000 |
| Subject: | Bug #66229 [NEW]: 128.0.0.0/16 isn't reserved any longer. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-183113@lists.php.net to get a copy of this message | ||
From: georgestephanis at automattic dot com
Operating system:
PHP version: Irrelevant
Package: Filter related
Bug Type: Bug
Bug description:128.0.0.0/16 isn't reserved any longer.
Description:
------------
As per RFC3330: http://tools.ietf.org/html/rfc3330
128.0.0.0/16 - This block, corresponding to the numerically lowest
of
the former Class B addresses, was initially and is still reserved by
the IANA. Given the present classless nature of the IP address
space, the basis for the reservation no longer applies and addresses
in this block are subject to future allocation to a Regional
Internet
Registry for assignment in the normal manner.
however,
https://github.com/php/php-src/blob/master/ext/filter/logical_filters.c#L718
still tests for 128.0.x.x
Test script:
---------------
$valid = filter_var( '128.0.46.45', FILTER_VALIDATE_IP,
FILTER_FLAG_NO_RES_RANGE );
Expected result:
----------------
$valid === '128.0.46.45';
Actual result:
--------------
$valid === false;
--
Edit bug report at https://bugs.php.net/bug.php?id=66229&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66229&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66229&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66229&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66229&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66229&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66229&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66229&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66229&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66229&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66229&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66229&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66229&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66229&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66229&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66229&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66229&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66229&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66229&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66229&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66229&r=mysqlcfg