#46973 [Csd->Opn]: IPv6 address filter rejects valid address
| From: | rasmus@php.net | Date: | Sun, 07 Jun 2009 16:55:52 +0000 |
| Subject: | #46973 [Csd->Opn]: IPv6 address filter rejects valid address | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-138079@lists.php.net to get a copy of this message | ||
ID: 46973
Updated by: rasmus@php.net
Reported By: alexandre at amen dot fr
-Status: Closed
+Status: Open
Bug Type: Filter related
Operating System: Debian
PHP Version: 5.2.8
-Assigned To:
+Assigned To: felipe
New Comment:
You can only have a single :: in an ipv6 address, so this was actually
an invalid address. The bug fix (and bug report) is incorrect.
Previous Comments:
------------------------------------------------------------------------
[2008-12-31 15:41:05] felipe@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2008-12-30 14:11:14] alexandre at amen dot fr
Description:
------------
The IPv6 address filter in the filter extension rejects valid IPv6
address notations: '1fff::a88:85a3::172.31.128.1'
Reproduce code:
---------------
var_dump(filter_var('1fff::a88:85a3::172.31.128.1',
FILTER_VALIDATE_IP,FILTER_FLAG_IPV6));
Expected result:
----------------
1fff::a88:85a3::172.31.128.1
Actual result:
--------------
false
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46973&edit=1