Edit report at http://bugs.php.net/bug.php?id=54959&edit=1

 ID:                 54959
 Updated by:         scott...@php.net
 Reported by:        farszabanan at yahoo dot com
 Summary:            Report One Bug For 08 And 09 Numbers In functions
-Status:             Open
+Status:             Bogus
 Type:               Bug
 Package:            *General Issues
 Operating System:   All
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Numbers beginning with a 0 are octal numbers.


Previous Comments:
------------------------------------------------------------------------
[2011-05-31 07:32:52] farszabanan at yahoo dot com

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



?>


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=54959&edit=1

Reply via email to