#44549 [Opn->Bgs]: Serious Problem with integer literals 08 and 09
| From: | felipe@php.net | Date: | Thu, 27 Mar 2008 12:33:27 +0000 |
| Subject: | #44549 [Opn->Bgs]: Serious Problem with integer literals 08 and 09 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-123703@lists.php.net to get a copy of this message | ||
ID: 44549
Updated by: felipe@php.net
Reported By: zootsuitbrian at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux version 2.6.16.33
PHP Version: 5.2.5
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
See about octal numbers.
http://docs.php.net/integer
Previous Comments:
------------------------------------------------------------------------
[2008-03-27 12:29:06] zootsuitbrian at gmail dot com
Description:
------------
if you use the integer literals of 08 or 09, the php parser
interprets them as an integer of value 0.
Reproduce code:
---------------
<?php
var_dump(07, 08, 09, 10);
?>
Expected result:
----------------
int(7)
int(8)
int(9)
int(10)
Actual result:
--------------
int(7)
int(0)
int(0)
int(10)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44549&edit=1