Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2000111

[PHP-DEV] PHP 4.0 Bug #7039 Updated: ip2long() and long2ip() don't work From: stas <email protected>
Date: 11/14/00

ID: 7039
Updated by: stas
Reported By: jpm <email protected>
Status: Closed
Bug Type: *Network Functions
Assigned To:
Comments:

Fixed in CVS.

Previous Comments:
---------------------------------------------------------------------------

[2000-10-05 08:04:34] jpm <email protected>
This is the simple script I'm trying to use:

<?php
$ip = "255.255.255.255";
echo ip2long($ip);
?>

That will echo "-1708283823", or some weird number like that, when it should be echoing "4294967295". It also does not work when I try to get the standard IP Address from "4294967295" using long2ip(), it gives some weird number.

Joao Prado Maia

---------------------------------------------------------------------------

Full Bug description available at: http://bugs.php.net/?id=7039

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>