#40628 [Com]: Strange ERROR
| From: | neel dot basu dot z at gmail dot com | Date: | Sun, 25 Feb 2007 15:22:44 +0000 |
| Subject: | #40628 [Com]: Strange ERROR | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109491@lists.php.net to get a copy of this message | ||
ID: 40628
Comment by: neel dot basu dot z 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:
Anything integer starting with the digit 0 is represented as an octal.
Previous Comments:
------------------------------------------------------------------------
[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