Edit report at https://bugs.php.net/bug.php?id=55286&edit=1
ID: 55286 User updated by: balezin at yandex dot ru Reported by: balezin at yandex dot ru -Summary: error in assign variable +Summary: error in the assigning integer values for the variables Status: Open -Type: Documentation Problem +Type: Bug Package: *General Issues Operating System: FreeBSD 8.2 PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: I am sorry for my mistake: it is not a "Documentation problem" - it is a Bug. Previous Comments: ------------------------------------------------------------------------ [2011-07-26 13:53:31] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55286&edit=1