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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 05:01:28 2024 UTC