RE: [PHP] BUG: sprintf(%u) and ip2long

From: Date: Tue, 14 Oct 2003 22:15:15 +0000
Subject: RE: [PHP] BUG: sprintf(%u) and ip2long
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-166122@lists.php.net to get a copy of this message
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:php-general@zirzow.dyndns.org] > Sent: Tuesday, October 14, 2003 2:25 PM > To: php-general@lists.php.net > Subject: Re: [PHP] BUG: sprintf(%u) and ip2long > > * Thus wrote Daevid Vincent (daevid@daevid.com): > > 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

« previous php.general (#166122) next »