From: geoffers+phpbugs at gmail dot com Operating system: Mac OS 10.5.6 PHP version: 5.2.9 PHP Bug Type: Filter related Bug description: filter accepts invalid IPv6 address
Description: ------------ The string '0:0:0:255.255.255.255' is not a valid IPv6 address. The filter extension allows it. Reproduce code: --------------- var_dump(filter_var('0:0:0:255.255.255.255', FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)); Expected result: ---------------- bool(false) Actual result: -------------- string(21) "0:0:0:255.255.255.255" -- Edit bug report at http://bugs.php.net/?id=48310&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48310&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48310&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48310&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48310&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48310&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48310&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48310&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48310&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48310&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48310&r=support Expected behavior: http://bugs.php.net/fix.php?id=48310&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48310&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48310&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48310&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48310&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48310&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48310&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48310&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48310&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48310&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48310&r=mysqlcfg