ID: 36061 User updated by: dahlgren dot andreas at gmail dot com -Summary: Escape \{$var} not working Reported By: dahlgren dot andreas at gmail dot com -Status: Bogus +Status: Open Bug Type: Output Control Operating System: Windows 2003 Server PHP Version: 5.1.2 New Comment:
"This is expected behaviour, {} is no longer special, they are being treated like any other character." Ok if the above is true then bothe these statements should display the same thing? echo "{".$var."}"; echo "{$var}"; but the first one is "{hello}" and the otherone is "hello". Previous Comments: ------------------------------------------------------------------------ [2006-01-18 00:25:59] [EMAIL PROTECTED] What he said. ------------------------------------------------------------------------ [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