php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #483 Variable variables are not resolved within quoted strings - worked with PHP 2.0
Submitted: 1998-06-26 14:00 UTC Modified: 1998-06-26 14:54 UTC
From: khapeman at skidmore dot edu Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Final Release OS: Solaris 2.5 and 2.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: khapeman at skidmore dot edu
New email:
PHP Version: OS:

 

 [1998-06-26 14:00 UTC] khapeman at skidmore dot edu
hudson{root}199: more junk
<?
$a = "hello";
$$a = "again";
echo $a, "\n";
echo $hello, "\n";
echo $$a, "\n";
echo "$a $$a\n";
?>

Here's the result:

hudson{root}200: php junk
Content-type: text/html

hello
again
again
hello $hello
hudson{root}201:

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-06-26 14:54 UTC] zeev
Read the CHANGES file, it's not supposed to work
(look for indirect reference inside quoted stirngs)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 10:01:33 2025 UTC