#50117 [NEW]: IPv6 validation errors

From: Date: Mon, 09 Nov 2009 00:09:57 +0000
Subject: #50117 [NEW]: IPv6 validation errors
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-144353@lists.php.net to get a copy of this message
From: crisp at xs4all dot nl Operating system: windows XP PHP version: 5.3.0 PHP Bug Type: Filter related Bug description: IPv6 validation errors Description: ------------ The following valid IPv6 addresses are being marked as 'invalid': a:b:c:d:e::1.2.3.4 ::0:a:b:c:d:e:f 0:a:b:c:d:e:f:: The following invalid IPv6 addresses are being marked as 'valid': ::01.02.03.04 0:0:0:255.255.255.255 please refer to the ABNF in http://rfc-ref.org/RFC-TEXTS/3986/chapter11.html Reproduce code: --------------- function validateIPv6($IP) { return filter_var($IP, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6); } substitute $IP with the IPv6 addresses mentioned above -- Edit bug report at http://bugs.php.net/?id=50117&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50117&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50117&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50117&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50117&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50117&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50117&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50117&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50117&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50117&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50117&r=support Expected behavior: http://bugs.php.net/fix.php?id=50117&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50117&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50117&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50117&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50117&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50117&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50117&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50117&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50117&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50117&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50117&r=mysqlcfg

« previous php.bugs (#144353) next »