#38964 [Opn->Bgs]: Duality in treating variables.
| From: | iliaa@php.net | Date: | Tue, 26 Sep 2006 15:21:28 +0000 |
| Subject: | #38964 [Opn->Bgs]: Duality in treating variables. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-102716@lists.php.net to get a copy of this message | ||
ID: 38964
Updated by: iliaa@php.net
Reported By: faust04 at o2 dot pl
-Status: Open
+Status: Bogus
Bug Type: Variables related
Operating System: OpenSuSE10.1
PHP Version: 5.1.6
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Inside a string it acts as concatenation.
Previous Comments:
------------------------------------------------------------------------
[2006-09-26 15:20:10] faust04 at o2 dot pl
Description:
------------
Duality in treating variables.
Reproduce code:
---------------
$o_$o = 10; // generates an error - that's ok
echo "My variable value: $o_$o"; // treat's "$o_$o" as a right declared
variable (sic!). It looks like 2 different variable definitions and
that's the mistake
Expected result:
----------------
Error 2 times
Actual result:
--------------
Error
My variable value:
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38964&edit=1