<?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
[EMAIL PROTECTED]  http://www.zend.com/

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to