php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67747 Neglating integer value
Submitted: 2014-08-02 13:46 UTC Modified: 2014-10-06 16:17 UTC
From: rshivakumar at outlook dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: Irrelevant OS: windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-08-02 13:46 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-08-02 23:43 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2014-08-02 23:43 UTC] requinix@php.net
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?
 [2014-10-06 16:17 UTC] ab@php.net
-Status: Feedback +Status: No Feedback
 [2014-10-06 16:17 UTC] ab@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC