|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-05-31 07:48 UTC] scottmac@php.net
-Status: Open
+Status: Bogus
[2011-05-31 07:48 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 22:00:02 2025 UTC |
Description: ------------ <?php /* Report One Bug For 08 And 09 Numbers In functions */ function test_1($number){echo $number;} echo test_1(08); // out: 0 echo test_1(8); // out: 8 echo test_1(09); // out: 0 echo test_1(9); // out: 9 /* Only for 08 and 09 _ Example: */ echo test_1(07); // out: 7 echo test_1(7); // out: 7 ?> Test script: --------------- <?php /* Report One Bug For 08 And 09 Numbers In functions */ function test_1($number){echo $number;} echo test_1(08); // out: 0 echo test_1(8); // out: 8 echo test_1(09); // out: 0 echo test_1(9); // out: 9 /* Only for 08 and 09 _ Example: */ echo test_1(07); // out: 7 echo test_1(7); // out: 7 ?> Expected result: ---------------- <?php /* Report One Bug For 08 And 09 Numbers In functions */ function test_1($number){echo $number;} echo test_1(08); // out: 0 echo test_1(8); // out: 8 echo test_1(09); // out: 0 echo test_1(9); // out: 9 /* Only for 08 and 09 _ Example: */ echo test_1(07); // out: 7 echo test_1(7); // out: 7 ?> Actual result: -------------- <?php /* Report One Bug For 08 And 09 Numbers In functions */ function test_1($number){echo $number;} echo test_1(08); // out: 0 echo test_1(8); // out: 8 echo test_1(09); // out: 0 echo test_1(9); // out: 9 /* Only for 08 and 09 _ Example: */ echo test_1(07); // out: 7 echo test_1(7); // out: 7 ?>