|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-09-22 06:53 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Feb 11 04:00:01 2026 UTC |
Description: ------------ If u assigned a variable x any value that starts with 0; like 09; then the value inside the varaible becomes 0. This also happens when calling functions; paramters passed to the function suffer the same bug. Reproduce code: --------------- <?php $VarX = 09; echo "VarX = $VarX\n"; FunY(09); function FunY($VarY) { echo "VarY = $VarY\n"; } ?> Expected result: ---------------- VarX = 09 VarY = 09 Actual result: -------------- VarX = 0 VarY = 0