|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #56833 IPv4 / IPv6
Submitted: 2006-02-10 09:24 UTC Modified: 2006-05-12 22:45 UTC
From: x dot philbert at pixandlog dot com Assigned: pajoye (profile)
Status: Closed Package: filter (PECL)
PHP Version: 5.1.1 OS: Gentoo Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: x dot philbert at pixandlog dot com
New email:
PHP Version: OS:


 [2006-02-10 09:24 UTC] x dot philbert at pixandlog dot com

I saw your source C files and to logical_filters.c i don't find implementation of IPv6 support. What is normal ???

Other question :
With this ip(ipv6) : "::a.b.c.d", you parse with ipv4 mode. But isn't an ipv6 ???

I looked for in documention here :
Thank you for your work.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-10 09:29 UTC]
I've no idea what you're trying to say here...
 [2006-02-10 09:59 UTC] x dot philbert at pixandlog dot com
Have you do code of IPv6 support ?

If i try this (:foobar):
$_GET['test'] = ':foobar';
$source = INPUT_GET;
$name = 'test';
$ret = input_get($source, $name, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6);
echo $ret; //print ':foobar'

And if i test this (::FFFF:
$_GET['test'] = '::FFFF:';
$source = INPUT_GET;
$name = 'test';
$ret = input_get($source, $name, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4);
var_dump($ret); //print NULL

And if i test this (::FFFF: but IPv6
$_GET['test'] = '::FFFF:';
$source = INPUT_GET;
$name = 'test';
$ret = input_get($source, $name, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6);
var_dump($ret); //print NULL
 [2006-05-08 12:21 UTC] pierre dot php at gmail dot com
IPv6 support is not yet implemented. I have a patch to add it. Assign to me.
 [2006-05-12 22:45 UTC] pierre dot php at gmail dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 07:01:34 2024 UTC