Bug #61700 [NEW]: FILTER_FLAG_IPV6, FILTER_FLAG_NO_PRIV_RANGE, FILTER_FLAG_NO_RES_RANGE failing
From:
Operating system:
PHP version: 5.3.10
Package: Filter related
Bug Type: Bug
Bug description:FILTER_FLAG_IPV6, FILTER_FLAG_NO_PRIV_RANGE, FILTER_FLAG_NO_RES_RANGE failing
Description:
------------
FILTER_FLAG_NO_PRIV_RANGE and FILTER_FLAG_NO_RES_RANGE failing in some
circumstances
Test script:
---------------
var_dump(filter_var('::ffff:192.168.1.1', FILTER_VALIDATE_IP,
FILTER_FLAG_IPV4));
var_dump(filter_var('::ffff:192.168.1.1', FILTER_VALIDATE_IP,
FILTER_FLAG_NO_PRIV_RANGE));
var_dump(filter_var('0:0:0:0:0:0:0:1', FILTER_VALIDATE_IP,
FILTER_FLAG_NO_RES_RANGE));
Expected result:
----------------
bool(true) ?
bool(false)
bool(false) as ::1 does?
Actual result:
--------------
bool(false)
string(18) "::ffff:192.168.1.1"
string(15) "0:0:0:0:0:0:0:1"
--
Edit bug report at https://bugs.php.net/bug.php?id=61700&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61700&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61700&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61700&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=61700&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61700&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=61700&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=61700&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=61700&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=61700&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=61700&r=support
Expected behavior: https://bugs.php.net/fix.php?id=61700&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=61700&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=61700&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=61700&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61700&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=61700&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=61700&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=61700&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=61700&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=61700&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=61700&r=mysqlcfg
Thread (8 messages)
- nanocaiordo at gmail dot com
- bramklg at gmail dot comBug #61700 [Com]: FILTER_FLAG_IPV6, FILTER_FLAG_NO_PRIV_RANGE, FILTER_FLAG_NO_RES_RANGE failing
- bugreport at zippymail dot infoBug #61700 [Com]: FILTER_FLAG_IPV6, FILTER_FLAG_NO_PRIV_RANGE, FILTER_FLAG_NO_RES_RANGE failing
- klunejko at gmail dot comBug #61700 [Com]: FILTER_FLAG_IPV6, FILTER_FLAG_NO_PRIV_RANGE, FILTER_FLAG_NO_RES_RANGE failing
- eric at ericstern dot comBug #61700 [Com]: FILTER_FLAG_IPV6, FILTER_FLAG_NO_PRIV_RANGE, FILTER_FLAG_NO_RES_RANGE failing
- requinix@php.netBug #61700 [Opn->Ver]: FILTER_FLAG_IPV6, FILTER_FLAG_NO_PRIV_RANGE, FILTER_FLAG_NO_RES_RANGE failing
- cmb@php.netBug #61700 [PATCH]: FILTER_FLAG_IPV6, FILTER_FLAG_NO_PRIV_RANGE, FILTER_FLAG_NO_RES_RANGE failing
- git@php.netBug #61700 [Ver->Csd]: FILTER_FLAG_IPV6, FILTER_FLAG_NO_PRIV_RANGE, FILTER_FLAG_NO_RES_RANGE failing