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)    
Comments Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 38 + 46 = ?

 [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 = ''; $net1 = ''; $net2 = ''; 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)


 [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 by the end of next Sunday (CET). If this was a problem with the 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.