#40628 [Opn]: Strange ERROR

From: Date: Sun, 25 Feb 2007 15:27:07 +0000
Subject: #40628 [Opn]: Strange ERROR
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109492@lists.php.net to get a copy of this message
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

« previous php.bugs (#109492) next »