FAQ
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)

------------------------------------------------------------------------

Search Discussions

  • Contact at Mar 16, 2012 at 11:45 am
    Edit report at https://pear.php.net/bugs/bug.php?id=19334&edit=1

    ID: 19334
    Comment by: contact@ingnu.fr
    Reported By: contact at ingnu dot fr
    Summary: "False positive"
    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: am
    Roadmap Versions:
    New Comment:

    Of course it is not valid, that's exactly why the checkIPv6 function
    should not return true while testing this example :)


    Previous Comments:
    ------------------------------------------------------------------------

    [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)

    ------------------------------------------------------------------------
  • Alexander Merz at Mar 16, 2012 at 11:49 am
    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: Bogus
    +Status: Open
    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: Bogus
    +Status: Open
    Oh sorry, i really missed that point. I reopened the bug.


    Previous Comments:
    ------------------------------------------------------------------------

    [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)

    ------------------------------------------------------------------------
  • Alexander Merz at Mar 16, 2012 at 12:38 pm
    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)

    ------------------------------------------------------------------------
  • Contact at Mar 16, 2012 at 12:46 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=19334&edit=1

    ID: 19334
    Comment by: contact@ingnu.fr
    Reported By: contact at ingnu dot fr
    Summary: "False positive"
    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:

    Thank you :) BTW, very nice work :)


    Previous Comments:
    ------------------------------------------------------------------------

    [2012-03-16 13:41:34] alexmerz

    -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.

    ------------------------------------------------------------------------

    [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)

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 16, '12 at 11:38a
activeMar 16, '12 at 12:46p
posts5
users2
websitepear.php.net

2 users in discussion

Alexander Merz: 3 posts Contact: 2 posts

People

Translate

site design / logo © 2022 Grokbase