For Programmers: Free Programming Magazines  


Home > Archive > PHP Questions and Answers > April 2007 > Re: [fw-general] Re: [PHP-DEV] Re: [fw-general] Re: [PHP-DEV] ZF









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [fw-general] Re: [PHP-DEV] Re: [fw-general] Re: [PHP-DEV] ZF
Stanislav Malyshev

2007-04-17, 6:57 pm

> <?php
> $a = 6900000000;
> $b = $a."";
> printf("%d", $a); echo "\n";
> printf("%d", $b); echo "\n";
> ?>
>
> PHP 5.2.1:
>
> -1689934592
> 2147483647
>
> PHP 5.2.2:
>
> -1689934592
> 6


Huh, that's a strange thing. Why it happens?
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com