php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63081 calculating maybe a bug
Submitted: 2012-09-13 13:11 UTC Modified: 2012-09-13 13:32 UTC
From: m dot finger83 at googlemail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: Irrelevant OS: Linux Debian
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: m dot finger83 at googlemail dot com
New email:
PHP Version: OS:

 

 [2012-09-13 13:11 UTC] m dot finger83 at googlemail dot com
Description:
------------
there is a calculating error


see what happens :)

Test script:
---------------
echo 010 + 05

Expected result:
----------------
015

Actual result:
--------------
13

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-09-13 13:32 UTC] felipe@php.net
Read the documentation about octal numbers:
http://us3.php.net/integer
 [2012-09-13 13:32 UTC] felipe@php.net
-Status: Open +Status: Not a bug
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat May 03 23:01:32 2025 UTC