ID:               47914
 Updated by:       [email protected]
 Reported By:      pserin at afone dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Variables related
 Operating System: Windows / Linux
 PHP Version:      5.2.9
 New Comment:

Number beginning with 0 is not an integer, it's an octal number. This 
is not a bug.


Previous Comments:
------------------------------------------------------------------------

[2009-04-07 07:41:18] pserin at afone dot com

Description:
------------
Any integer begining by 0 is truncated or display wierdly. The only way
to get around it is to put the number between commas.

Reproduce code:
---------------
<?php

$number = 0058434648616;

$multipl = 2;

$result = $number * $multipl;

echo $number." x ".$multipl." = ".$result;

?>

Expected result:
----------------
58434648616 x 2 = 116869297232

Actual result:
--------------
5 x 2 = 10


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=47914&edit=1

Reply via email to