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

Reply via email to