Bug #17800 [Opn->Csd]: ipInNetwork method in bug

From: Date: Wed, 25 Aug 2010 11:46:40 +0000
Subject: Bug #17800 [Opn->Csd]: ipInNetwork method in bug
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-4669@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=17800&edit=1 ID: 17800 Updated by: bate@php.net Reported By: nose at paperboy dot co dot jp Summary: ipInNetwork method in bug -Status: Open +Status: Closed Type: Bug Package: Net_IPv4 Operating System: centos5 Package Version: 1.3.2 PHP Version: 5.2.6 -Assigned To: +Assigned To: bate Roadmap Versions: New Comment: -Status: Open +Status: Closed -Assigned To: +Assigned To: bate 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: ------------------------------------------------------------------------ [2010-08-23 11:46:04] non Description: ------------ [-] if (strcasecmp(get_class($network), 'pear_error') <> 0) { return false; } [+] if (strcasecmp(get_class($network), 'pear_error') == 0) { return false; } Test script: --------------- <?php require_once("/IPv4.php"); $ip = '10.11.12.13'; $net1 = '10.0.0.1/8'; $net2 = '127.0.0.1/8'; var_dump(Net_IPv4::ipInNetwork($ip, $net1)); var_dump(Net_IPv4::ipInNetwork($ip, $net2)); ?> Expected result: ---------------- [+] bool(true) bool(false) Actual result: -------------- [-] bool(false) bool(false) ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=17800&edit=1

« previous php.pear.bugs (#4669) next »