#47435 [NEW]: FILTER_FLAG_NO_PRIV_RANGE and FILTER_FLAG_NO_RES_RANGE don't work with ipv6
| From: | valli at icsurselva dot ch | Date: | Wed, 18 Feb 2009 13:57:32 +0000 |
| Subject: | #47435 [NEW]: FILTER_FLAG_NO_PRIV_RANGE and FILTER_FLAG_NO_RES_RANGE don't work with ipv6 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-133951@lists.php.net to get a copy of this message | ||
From: valli at icsurselva dot ch
Operating system: linux
PHP version: 5.3.0beta1
PHP Bug Type: Filter related
Bug description: FILTER_FLAG_NO_PRIV_RANGE and FILTER_FLAG_NO_RES_RANGE don't work with ipv6
Description:
------------
The filter flags FILTER_FLAG_NO_PRIV_RANGE
and FILTER_FLAG_NO_RES_RANGE have no effekt
on private/reserved ipv6 addresses.
(see also rfc5156; Special-Use IPv6 Addresses)
Reproduce code:
---------------
var_dump(filter_var('fc00::', FILTER_VALIDATE_IP,
FILTER_FLAG_NO_PRIV_RANGE));
Expected result:
----------------
false
Actual result:
--------------
fc00::
--
Edit bug report at http://bugs.php.net/?id=47435&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47435&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47435&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47435&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47435&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47435&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47435&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47435&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47435&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47435&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47435&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47435&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47435&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47435&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47435&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47435&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47435&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47435&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47435&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47435&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47435&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47435&r=mysqlcfg