PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_IPv4 » Bug #840

Netmask 0

Details

Submitted2004-02-23 09:16 UTC
Fromamedeop at yahoo dot com
Assignedekilfoil
StatusClosed
PackageNet_IPv4
PHP Version4.3.4
OSLinux RH9.0
Roadmaps(Not assigned)

Comments

[2004-02-23 09:16 UTC] amedeop at yahoo dot com

Description:
------------
Netmask 0 should be a valid netmask.

Reproduce code:
---------------
$net = Net_IPv4::parseAddress("0.0.0.0/0");
$firstip = Net_IPv4::ip2double($net->network);
$lastip = Net_IPv4::ip2double($net->broadcast);

Expected result:
----------------
$firstip -> 0
$lastip -> 4294967295

Actual result:
--------------
$firstip -> 4294967295
$lastip -> 4294967295

[2004-04-28 01:49 UTC] eric at ypass dot net

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.

Changed a > to >=... all is well

[2004-04-28 02:53 UTC] eric at ypass dot net

Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pear.php.net/packages.php