|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26951 INT issue, passing 08 results in 0
Submitted: 2004-01-17 21:33 UTC Modified: 2004-01-18 05:31 UTC
Avg. Score:3.3 ± 1.2
Reproduced:2 of 3 (66.7%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: jake at presstec dot net Assigned:
Status: Not a bug Package: *Programming Data Structures
PHP Version: 4.3.4 OS: Linux 2.4.
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jake at presstec dot net
New email:
PHP Version: OS:


 [2004-01-17 21:33 UTC] jake at presstec dot net
This is very simple too understand from the example code,passing 08 or 09 results in 0..... 

Errr umm... what the?! 


Reproduce code:

function p($val)
    echo "$val<br/>";



Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-17 21:52 UTC] pluggz24 at yahoo dot com
This isn't a bug; this is proper behavior for an octal integer. 08 and 09 are both undefined, as an octal value can have digits 0-7 :/

I don't see this as being a bug.
 [2004-01-18 05:31 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

Ocalt restrictions
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 11:01:28 2024 UTC