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
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.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 08:01:33 2024 UTC