|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66229 isn't reserved any longer.
Submitted: 2013-12-03 22:20 UTC Modified: 2013-12-03 22:55 UTC
From: georgestephanis at automattic dot com Assigned: aharvey (profile)
Status: Closed Package: Filter related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
45 - 23 = ?
Subscribe to this entry?

 [2013-12-03 22:20 UTC] georgestephanis at automattic dot com
As per RFC3330: - 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.


still tests for 128.0.x.x

Test script:
$valid = filter_var( '', FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE );

Expected result:
$valid === '';

Actual result:
$valid === false;


dont-reserve-128-0-x-x (last revision 2013-12-03 22:20 UTC by georgestephanis at automattic dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-03 22:21 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2013-12-03 22:55 UTC]
-Status: Assigned +Status: Closed
 [2013-12-03 22:55 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

Fixed in 5.4, 5.5, 5.6 and master.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Dec 03 11:01:23 2020 UTC