php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13441 Evaluation of {$ in strings
Submitted: 2001-09-25 15:26 UTC Modified: 2001-09-25 16:47 UTC
From: john at scl dot co dot uk Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.5 OS: linux
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: john at scl dot co dot uk
New email:
PHP Version: OS:

 

 [2001-09-25 15:26 UTC] john at scl dot co dot uk
$x="hello";
echo "1={$x} 2=\{$x}" -> 1=hello 2={hello}

It "should" have produced -> 1={hello} 2=\{hello}

No doubt this is related to evaluation of variable variables
but the behavior has certainly changed since PHP3 and I
think it deserves to be called a bug?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-25 16:47 UTC] derick@php.net
Not a bug:
Steve writes:
This behavior is clearly documented in the manual under "Migrating from PHP
3.0 to PHP 4.0"

http://www.php.net/manual/en/migration4.strings.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 16 11:01:28 2024 UTC