php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52580 I like see string "test"
Submitted: 2010-08-10 22:57 UTC Modified: 2010-08-10 23:01 UTC
From: dijincorp at mail dot ru Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.14 OS: Windows,Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dijincorp at mail dot ru
New email:
PHP Version: OS:

 

 [2010-08-10 22:57 UTC] dijincorp at mail dot ru
Description:
------------
I like see string "test"

$variable = "test";
$var_1 = "variable";
echo ${$var_1}; //work

$var_2['x2'] = "test";
$var_2['x'] = "var_2";
echo ${$var_2['x']}['x2']; //work

$var_3['x2'] = "test";
$var_3['x'] = "var_3['x2']";
echo ${$var_3['x']}; //dont work

Sorry for my English.

Test script:
---------------
$var_3['x2'] = "test";
$var_3['x'] = "var_3['x2']";
echo ${$var_3['x']};

Expected result:
----------------
Notice: Undefined variable: var_3['x2']

Actual result:
--------------
string "test"

Patches

wtf.txt (last revision 2010-08-10 20:59 UTC by dijincorp at mail dot ru)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-10 23:01 UTC] degeberg@php.net
-Status: Open +Status: Bogus
 [2010-08-10 23:01 UTC] degeberg@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 15 22:01:30 2024 UTC