Bug #17832 [Opn->Csd]: ipInNetwork Judgment mistake
| From: | bate@php.net | Date: | Mon, 30 Aug 2010 06:11:03 +0000 |
| Subject: | Bug #17832 [Opn->Csd]: ipInNetwork Judgment mistake | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-4718@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=17832&edit=1
ID: 17832
Updated by: bate@php.net
Reported By: m dot ikeda at skynet-mobile dot jp
Summary: ipInNetwork Judgment mistake
-Status: Open
+Status: Closed
Type: Bug
Package: Net_IPv4
Operating System: CentOS release 5.5 (Final)
Package Version: 1.3.2
PHP Version: 5.3.3
-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-30 06:00:16] masan
Description:
------------
Net_IPv4::ipInNetwork
It becomes only false.
Test script:
---------------
#!/usr/bin/php
<?php
error_reporting(E_ALL);
require 'Net/IPv4.php';
var_dump(Net_IPv4::ipInNetwork('192.168.11.200', '192.168.11.0/24'));
var_dump(Net_IPv4::ipInNetwork('192.168.12.200', '192.168.11.0/24'));
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=17832&edit=1