php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55286 error in the assigning integer values for the variables
Submitted: 2011-07-26 13:53 UTC Modified: 2011-07-27 10:19 UTC
From: balezin at yandex dot ru Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.3.6 OS: FreeBSD 8.2
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: balezin at yandex dot ru
New email:
PHP Version: OS:

 

 [2011-07-26 13:53 UTC] balezin at yandex dot ru
Description:
------------
# php --version
PHP 5.3.6 with Suhosin-Patch (cli) (built: Jul 21 2011 10:37:27)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

Hi! I found PHP error in the process assigning for integer variables.

Test script:
---------------
$a1=02;
$a2=2;
$a3=09;
$a4=9;

print("$a1, $a2, $a3, $a4");

Expected result:
----------------
2, 2, 9, 9

Actual result:
--------------
2, 2, 0, 9

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-26 14:02 UTC] balezin at yandex dot ru
-Summary: error in assign variable +Summary: error in the assigning integer values for the variables -Type: Documentation Problem +Type: Bug
 [2011-07-26 14:02 UTC] balezin at yandex dot ru
I am sorry for my mistake: it is not a "Documentation problem" - it is a Bug.
 [2011-07-26 14:25 UTC] bjori@php.net
-Status: Open +Status: Bogus
 [2011-07-26 14:25 UTC] bjori@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

See the error on http://no2.php.net/types.integer
 [2011-07-27 10:19 UTC] balezin at yandex dot ru
I am confused! ;-)
Thank you..
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 16:01:34 2025 UTC