Good point...
v4.1.2, Linux stripples.devel.redhat.com 2.4.18-11smp #1 SMP Thu Aug 15
06:41:59 EDT 2002 i686 unknown
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.1.1, Copyright (c) 1998-2001 Zend Technologies
with Zend Optimizer v2.1.0, Copyright (c) 1998-2003, by Zend
Technologies
Apache/1.3.22
Also, if you notice, in my example, the problem was using the sprintf (%u)
as per the example on the php website. Just doing like you did works for me
too...
> -----Original Message-----
> From: Curt Zirzow [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 2:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] BUG: sprintf(%u) and ip2long
>
> * Thus wrote Daevid Vincent ([EMAIL PROTECTED]):
> > Could be my not understanding of something, but I think
> there is a bug in
> > using ip2long() and sprintf(%u) as indicated on this page:
> > http://us4.php.net/manual/en/function.ip2long.php
>
> What version of php? It works find in 4.3.3.
>
> echo long2ip(3232304168);
> ---
> 192.169.12.40
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php