[PHP-DEV] PHP 4.0 Bug #6785: { needs to be backslashed if followed by a variable From: alain <email protected>
Date: 09/17/00

From: alain <email protected>
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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>