Bug #67747 [Opn->Fbk]: Neglating integer value
| From: | requinix@php.net | Date: | Sat, 02 Aug 2014 23:43:36 +0000 |
| Subject: | Bug #67747 [Opn->Fbk]: Neglating integer value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-186947@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67747&edit=1
ID: 67747
Updated by: requinix@php.net
Reported by: rshivakumar at outlook dot com
Summary: Neglating integer value
-Status: Open
+Status: Feedback
Type: Bug
Package: *General Issues
Operating System: windows
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
http://3v4l.org/j19hZ
The 0 prefix means octal so you'll get 19, not 23.
http://php.net/manual/en/language.types.integer.php
Is that your actual repro script or did you just make up something to type in the bug report?
Previous Comments:
------------------------------------------------------------------------
[2014-08-02 13:46:44] rshivakumar at outlook dot com
Description:
------------
i tried to store an integer value in variable , after storing i echo that variable i got zero.
$x=023;
echo $x; // output is 0
Test script:
---------------
$x=023;
echo $x; // output is 0
Expected result:
----------------
$x=023;
echo $x;// expected result is 23
Actual result:
--------------
$x=023;
echo $x;// Actual result is 0
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67747&edit=1