Re: Bug #13914: echo ip2long($ip) differs from printf ("%u\n", ip2long ($ip));
| From: | Stig Venaas | Date: | Mon, 05 Nov 2001 09:18:53 +0000 |
| Subject: | Re: Bug #13914: echo ip2long($ip) differs from printf ("%u\n", ip2long ($ip)); | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-69635@lists.php.net to get a copy of this message | ||
On Sat, Nov 03, 2001 at 04:27:21PM -0000, ravenhead@mail.ru wrote:
> The first one is based on echo output and the second - on printf()
> function. These are examples with output:
>
> <?
> $ip = gethostbyname("www.php.net");
> $out = "The following URLs are equivalent:<br>\n";
> $out .= "http://www.php.net/, http://".$ip."/,
> and
> http://".ip2long($ip)."/<br>\n";
> echo $out;
> ?>
I wish this wasn't put in the manual. Does it say in any spec that
these URLs should be equivalent? I doubt it.
Stig