#36061 [Opn->Bgs]: Escape \{$var} not working
ID: 36061
Updated by: sniper@php.net
Reported By: dahlgren dot andreas at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: Windows 2003 Server
PHP Version: 5.1.2
New Comment:
What he said.
Previous Comments:
------------------------------------------------------------------------
[2006-01-18 00:15:34] judas dot iscariote at gmail dot com
I reported this "problem" few weeks ago.
and it's not a bug according to PHP Developers.
it just changed the behaviour. :-(
http://bugs.php.net/bug.php?id=35527
now the change is documented here:
http://cl2.php.net/manual/en/language.types.string.php
------------------------------------------------------------------------
[2006-01-18 00:01:51] dahlgren dot andreas at gmail dot com
Description:
------------
\{$var} results in wrong output.
Reproduce code:
---------------
<?
$var = "hello";
echo "\{$var}";
?>
Expected result:
----------------
{hello}
Actual result:
--------------
\{hello}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36061&edit=1
Thread (4 messages)