|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2016-07-08 14:34 UTC] jpauli@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: jpauli
[2016-07-08 14:34 UTC] jpauli@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 09:00:01 2025 UTC |
Description: ------------ Although whole 127.0.0.0/8 range is reserved, PHP only (and incorrectly) validates 127.0.0.1/32. I.e. 127.0.0.2 or 127.0.1.1 should be also treated as reserved range, but they are not currently. Test script: --------------- var_dump(filter_var('127.0.1.1', FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_RES_RANGE)); Expected result: ---------------- bool(false) Actual result: -------------- string(9) "127.0.1.1"