ID: 11028
Updated by: derick
Reported By: [EMAIL PROTECTED]
Status: Assigned
Bug Type: *Network Functions
Operating system: 
PHP Version: 4.0 Latest CVS (2001-05-22)
Assigned To: derick
Comments:

User reports:

Hi Derick.

here is a short code script fpr ip2long().
<?php
$tmp1="192.168.0.10";
$tmp2=ip2long($tmp1);
$tmp3=long2ip($tmp2);
echo "$tmp1 - $tmp2 - $tmp3";
?>

Under php4.0.5 $tmp2 results: -1062731766
with the same compiler options
under php4.0.6RC1 :  3232235530

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

[2001-05-22 15:42:31] [EMAIL PROTECTED]
Can you please post a short script which shows the problem?

Derick

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

[2001-05-22 15:39:49] [EMAIL PROTECTED]
Ok, will see if we can really fix this now.

Derick

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

[2001-05-22 15:29:19] [EMAIL PROTECTED]
ip2long puts under 4.0.6RC1 unsigned integers.
now long2ip doesnt work.

./configure 
--with-apxs=/usr/local/apache/current/bin/apxs 
--with-config-file-path=/etc 
--with-openssl=/usr/local/openssl/current 
--enable-sigchild 
--enable-thread-safety 
--disable-short-tags 
--with-bz2 
--with-curl=/usr/local/curl/current 
--enable-ftp 
--with-mhash=/usr/local/mhash/current 
--with-mysql=/usr/local/mysql/current 
--with-mm=../mm-1.1.3 
--enable-trans-sid 
--enable-sockets 
--enable-sysvsem 
--enable-sysvshm 
--with-zlib 
--with-jpeg-dir=/usr 
--with-png-dir=/usr/local 
--enable-inline-optimization 
--enable-memory-limit 
--enable-shmop 
--with-mcrypt=/usr/local/libmcrypt/current 
--with-recode 
--disable-debug 
--with-gd

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



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11028&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to