PHP 4.0 Bug #6785: { needs to be backslashed if followed by a variable
| From: | alain at onesite dot org | Date: | Sun, 17 Sep 2000 05:58:16 +0000 |
| Subject: | PHP 4.0 Bug #6785: { needs to be backslashed if followed by a variable | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33377@lists.php.net to get a copy of this message | ||
From: alain@onesite.org
Operating system: Linux RedHat 5.2 2.0.36, gcc 2.95
PHP version: 4.0.2
PHP Bug Type: Scripting Engine problem
Bug description: { needs to be backslashed if followed by a variable
I'm not sure this is a bug :
this works :
====================
<?php
echo "{\n";
?>
====================
this fails :
====================
<?php
$s="hello";
echo "{$s";
?>
====================
Parse error: parse error, expecting `'}'' on line 3
Just in case :
http://www.onesite.org/phpinfo.php
Alain