Bug #19334 [Asn->Csd]: "False positive"
| From: | alexander dot merz at gmail dot com | Date: | Fri, 16 Mar 2012 13:41:34 +0000 |
| Subject: | Bug #19334 [Asn->Csd]: "False positive" | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-8403@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19334&edit=1
ID: 19334
Updated by: alexander.merz@gmail.com
Reported By: contact at ingnu dot fr
Summary: "False positive"
-Status: Assigned
+Status: Closed
Type: Bug
Package: Net_IPv6
Operating System: Debian GNU/Linux Squeeze
Package Version: 1.2.1
PHP Version: 5.3.3
Assigned To: am
Roadmap Versions:
New Comment:
-Status: Assigned
+Status: Closed
This bug has been fixed in SVN.
If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should
be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.
Previous Comments:
------------------------------------------------------------------------
[2012-03-16 12:51:58] alexmerz
-Status: Bogus
+Status: Open
Oh sorry, i really missed that point. I reopened the bug.
------------------------------------------------------------------------
[2012-03-16 12:48:32] ingnu
Of course it is not valid, that's exactly why the checkIPv6 function
should not return true while testing this example :)
------------------------------------------------------------------------
[2012-03-16 12:40:40] alexmerz
-Status: Open
+Status: Bogus
-Assigned To:
+Assigned To: am
Thank you for taking the time to write to us, but this is not
a bug.
The Package checks IPv6 adresses, not IPv6-based URLs. Port numbers are
not a part of an adress, so the provided input is not valid for an
adress, and is also not valid for an URL according to RFC 2732 requiring
you to enclose the adress in square brackets to separate the adress from
the port.
------------------------------------------------------------------------
[2012-03-16 01:27:59] ingnu
Description:
------------
The function checkIPv6 returns true if we add a port number to the
address without surrounding the address with square brackets.
Test script:
---------------
In this example, 48866 is a port number.
var_dump(Net_IPv6::checkIPv6("fe80::16da:e9ff:fe0f:6dd4/64:48866"));
Expected result:
----------------
bool(false)
Actual result:
--------------
bool(true)
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19334&edit=1