Doc #55286 [NEW]: error in assign variable

From: Date: Tue, 26 Jul 2011 13:53:31 +0000
Subject: Doc #55286 [NEW]: error in assign variable
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6930@lists.php.net to get a copy of this message
From: Operating system: FreeBSD 8.2 PHP version: 5.3.6 Package: *General Issues Bug Type: Documentation Problem Bug description:error in assign variable 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 -- Edit bug report at https://bugs.php.net/bug.php?id=55286&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55286&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55286&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55286&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55286&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55286&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55286&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55286&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55286&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55286&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55286&r=support Expected behavior: https://bugs.php.net/fix.php?id=55286&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55286&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55286&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55286&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55286&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55286&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55286&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55286&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55286&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55286&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55286&r=mysqlcfg

« previous php.doc.bugs (#6930) next »