php.net |  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
 [2006-02-10 09:24 UTC] x dot philbert at pixandlog dot com
Description:
------------
Hi,

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 :
http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/x493.html
and
ftp://ftp.rfc-editor.org/in-notes/rfc2373.txt
Thank you for your work.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-10 09:29 UTC] derick@php.net
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:129.144.52.38)
$_GET['test'] = '::FFFF:129.144.52.38';
$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:129.144.52.38) but IPv6
$_GET['test'] = '::FFFF:129.144.52.38';
$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 pecl.php.net.

In case this was a pecl.php.net 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-2019 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 06:01:26 2019 UTC