Bug #66229 [Opn->Asn]: 128.0.0.0/16 isn't reserved any longer.

From: Date: Tue, 03 Dec 2013 22:21:46 +0000
Subject: Bug #66229 [Opn->Asn]: 128.0.0.0/16 isn't reserved any longer.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183114@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66229&edit=1 ID: 66229 Updated by: aharvey@php.net Reported by: georgestephanis at automattic dot com Summary: 128.0.0.0/16 isn't reserved any longer. -Status: Open +Status: Assigned Type: Bug Package: Filter related PHP Version: Irrelevant -Assigned To: +Assigned To: aharvey Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2013-12-03 22:20:03] georgestephanis at automattic dot com 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 this bug report at https://bugs.php.net/bug.php?id=66229&edit=1

« previous php.bugs (#183114) next »