ID: 40628
User updated by: neel dot get at gmail dot com
Reported By: neel dot get at gmail dot com
Status: Open
Bug Type: Unknown/Other Function
Operating System: Windows
PHP Version: 4.4.6RC1
New Comment:
Thanks
Sorry to Assume it as Bugs
Previous Comments:
------------------------------------------------------------------------
[2007-02-25 15:22:43] neel dot basu dot z at gmail dot com
Anything integer starting with the digit 0 is represented as an octal.
------------------------------------------------------------------------
[2007-02-25 15:02:59] neel dot get at gmail dot com
Description:
------------
The function is not getting Int Argumet Properly
Reproduce code:
---------------
<?php
function hundreed($num_str)
{
echo $num_str;
}
$num = 052;
hundreed($num);
?>
Expected result:
----------------
42
Actual result:
--------------
52
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40628&edit=1