Bug #19334 [Opn->Bgs]: "False positive"
| From: | alexander dot merz at gmail dot com | Date: | Fri, 16 Mar 2012 12:40:41 +0000 |
| Subject: | Bug #19334 [Opn->Bgs]: "False positive" | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-8400@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: Open
+Status: Bogus
Type: Bug
Package: Net_IPv6
Operating System: Debian GNU/Linux Squeeze
Package Version: 1.2.1
PHP Version: 5.3.3
-Assigned To:
+Assigned To: am
Roadmap Versions:
New Comment:
-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.
Previous Comments:
------------------------------------------------------------------------
[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