php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9883 octal representation
Submitted: 2001-03-20 18:38 UTC Modified: 2001-03-21 01:05 UTC
From: koen at cee-kay dot net Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.0.4pl1 OS: Linux
Private report: No CVE-ID: None
 [2001-03-20 18:38 UTC] koen at cee-kay dot net
Hi there,
I don't know if this is a bug, but while writing a form to enter lap times like: hours,minutes,seconds,milliseconds
milliseconds are likeley to start with a 0 (zero).

Now I found that this results in the Decimal value of the Octal-integer.

for example:
035 will be represented as: 29

Is this a bug or hidden feature? If this is not a bug, then is there any other way to pass a decimal value starting with a 0 (zero)?

Kind regards,
Koen Antonissen

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-21 01:05 UTC] derick@php.net
This is indeed a feature. You can strip the null from the
resulting string later, bu you have to do that by hand.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 14 17:01:25 2024 UTC