Bug #60037 [Com]: The octal interpreter wrongs...
| From: | anon at anon dot anon | Date: | Wed, 12 Oct 2011 23:02:29 +0000 |
| Subject: | Bug #60037 [Com]: The octal interpreter wrongs... | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164277@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60037&edit=1
ID: 60037
Comment by: anon at anon dot anon
Reported by: seinghhaccoski at rocketmail dot com
Summary: The octal interpreter wrongs...
Status: Bogus
Type: Bug
Package: *General Issues
Operating System: Linux Ubuntu
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
You've gotta admit though, even by PHP standards, this is an appalling quirk.
Previous Comments:
------------------------------------------------------------------------
[2011-10-11 22:16:36] felipe@php.net
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 the documentation about the behavior with invalid octal numbers:
http://docs.php.net/integer
Thanks.
------------------------------------------------------------------------
[2011-10-11 07:59:37] seinghhaccoski at rocketmail dot com
Description:
------------
The octal interpreter wrongs...
Test script:
---------------
echo 010 + 090;
Expected result:
----------------
an error.....
Actual result:
--------------
8
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60037&edit=1