FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18976&edit=1

ID: 18976
Updated by: alexander.merz@gmail.com
Reported By: pear at rula dot net
Summary: IPv6 validation problem
Status: Open
Type: Bug
Package: Net_IPv6
Operating System: Centos 5.7
Package Version: 1.2.1
PHP Version: 5.1.6
-Assigned To:
+Assigned To: alexmerz
Roadmap Versions:
New Comment:

-Assigned To:
+Assigned To: alexmerz



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

[2011-11-09 21:26:42] noname

Description:
------------
validating string "2002::/129" returns true even though IPv6 address
space is only 128-bit long

Test script:
---------------
<?php
require_once 'Net/IPv6.php';
if (Net_IPv6::checkIPv6("2002::/129"))
echo "true";
else
echo "false";
?>


Expected result:
----------------
false

Actual result:
--------------
true

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

Search Discussions

  • Alexander Merz at Nov 10, 2011 at 12:52 am
    Edit report at http://pear.php.net/bugs/bug.php?id=18976&edit=1

    ID: 18976
    Updated by: alexander.merz@gmail.com
    Reported By: pear at rula dot net
    Summary: IPv6 validation problem
    -Status: Assigned
    +Status: Closed
    Type: Bug
    Package: Net_IPv6
    Operating System: Centos 5.7
    Package Version: 1.2.1
    PHP Version: 5.1.6
    Assigned To: alexmerz
    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.

    Check is numeric value and valid range


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

    [2011-11-09 22:06:24] alexmerz

    -Assigned To:
    +Assigned To: alexmerz


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

    [2011-11-09 21:26:42] noname

    Description:
    ------------
    validating string "2002::/129" returns true even though IPv6 address
    space is only 128-bit long

    Test script:
    ---------------
    <?php
    require_once 'Net/IPv6.php';
    if (Net_IPv6::checkIPv6("2002::/129"))
    echo "true";
    else
    echo "false";
    ?>


    Expected result:
    ----------------
    false

    Actual result:
    --------------
    true

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedNov 9, '11 at 9:07p
activeNov 10, '11 at 12:52a
posts2
users1
websitepear.php.net

1 user in discussion

Alexander Merz: 2 posts

People

Translate

site design / logo © 2022 Grokbase