ID: 34123
Updated by: [EMAIL PROTECTED]
Reported By: ondrej at sury dot org
-Status: Open
+Status: Wont fix
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.4.0
New Comment:
Works fine in PHP5.
I doubt that it's going to change in 4.4.0 ever.
Previous Comments:
------------------------------------------------------------------------
[2005-08-13 14:52:53] ondrej at sury dot org
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.
------------------------------------------------------------------------
[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