Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.5

Bug #17800 ipInNetwork method in bug
Submitted: 2010-08-23 15:46 UTC
From: non Assigned: bate
Status: Closed Package: Net_IPv4 (version 1.3.2)
PHP Version: 5.2.6 OS: centos5
Roadmaps: (Not assigned)    
Subscription  


 [2010-08-23 15:46 UTC] non (manami nose)
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)

Comments

 [2010-08-25 15:46 UTC] bate (Marco Kaiser)
-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.