ID: 34123 User updated by: ondrej at sury dot org Reported By: ondrej at sury dot org Status: Open Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 4.4.0 New Comment:
Maybe I should another test case: Reproduce code: --------------- <?php $file = 'test'; echo __LINE__."${GLOBALS['file']}\n"; echo __LINE__.$GLOBALS['file']."\n"; ?> Expected result: ---------------- 3test 4test Actual result: -------------- 3test 4test Ie. it works as it should. Previous Comments: ------------------------------------------------------------------------ [2005-08-13 14:51:28] ondrej at sury dot org Description: ------------ $GLOBALS variable is not printed out if: - used from inside string - used only once Code works fine in PHP5. Reproduce code: --------------- <?php $file = 'test'; echo __LINE__."${GLOBALS['file']}"."\n"; ?> Expected result: ---------------- 3test Actual result: -------------- 3 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34123&edit=1