#50117 [Opn->Fbk]: IPv6 validation errors

From: Date: Mon, 09 Nov 2009 17:06:41 +0000
Subject: #50117 [Opn->Fbk]: IPv6 validation errors
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-144370@lists.php.net to get a copy of this message
ID: 50117 Updated by: jani@php.net Reported By: crisp at xs4all dot nl -Status: Open +Status: Feedback Bug Type: Filter related Operating System: windows XP PHP Version: 5.3.0 New Comment: Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2009-11-09 00:09:57] crisp at xs4all dot nl 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 this bug report at http://bugs.php.net/?id=50117&edit=1

« previous php.bugs (#144370) next »