Bug #68633 [Opn->Nab]: when we apply "08+05=5" then result 5
| From: | requinix@php.net | Date: | Sat, 20 Dec 2014 06:59:55 +0000 |
| Subject: | Bug #68633 [Opn->Nab]: when we apply "08+05=5" then result 5 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189141@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68633&edit=1
ID: 68633
Updated by: requinix@php.net
Reported by: ajay at idealtechnologys dot com
Summary: when we apply "08+05=5" then result 5
-Status: Open
+Status: Not a bug
Type: Bug
Package: Strings related
Operating System: ubuntu
PHP Version: 5.4.36
Block user comment: N
Private report: N
New Comment:
A leading zero means octal, but 08 is invalid so it becomes just 0.
http://php.net/manual/en/language.types.integer.php
Previous Comments:
------------------------------------------------------------------------
[2014-12-20 06:57:38] ajay at idealtechnologys dot com
Description:
------------
when we add 08+05 result showed 5 and we
apply 07+5 then showed 12.
Test script:
---------------
echo $order=08+05;
Actual result:
--------------
13
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68633&edit=1