Bug #77217 [NEW]: FILTER_FLAG_NO_RES_RANGE should match 100.64.0.0/10

From: Date: Thu, 29 Nov 2018 02:25:34 +0000
Subject: Bug #77217 [NEW]: FILTER_FLAG_NO_RES_RANGE should match 100.64.0.0/10
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218202@lists.php.net to get a copy of this message
From: dan dot franklin at fen dot com Operating system: Linux PHP version: 7.1.24 Package: Unknown/Other Function Bug Type: Bug Bug description:FILTER_FLAG_NO_RES_RANGE should match 100.64.0.0/10 Description: ------------ According to https://en.wikipedia.org/wiki/Reserved_IP_addresses the IPv4 address range 100.64.0.0/10 is reserved for carrier-grade NAT. But in PHP 7.1.24 filter_var with FILTER_FLAG_NO_RES_RANGE thinks it's fine. Test script: --------------- <?php var_export(filter_var('100.74.11.184', FILTER_VALIDATE_IP, FILTER_FLAG_NO_RES_RANGE)); Expected result: ---------------- false Actual result: -------------- '100.74.11.184' -- Edit bug report at https://bugs.php.net/bug.php?id=77217&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77217&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77217&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77217&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77217&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77217&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77217&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77217&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77217&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77217&r=support Expected behavior: https://bugs.php.net/fix.php?id=77217&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77217&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77217&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77217&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77217&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77217&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77217&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77217&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77217&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77217&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77217&r=mysqlcfg

« previous php.bugs (#218202) next »