#35411 [Asn->Csd]: brace escape problem (changed behaviour)
| From: | iliaa@php.net | Date: | Sun, 27 Nov 2005 06:49:15 +0000 |
| Subject: | #35411 [Asn->Csd]: brace escape problem (changed behaviour) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-89078@lists.php.net to get a copy of this message | ||
ID: 35411
Updated by: iliaa@php.net
Reported By: frisauf at comnet dot cz
-Status: Assigned
+Status: Closed
Bug Type: Strings related
Operating System: linux
PHP Version: 5.1.0
Assigned To: iliaa
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-11-26 18:42:15] pajoye@php.net
This commit seems to be the cause:
http://cvs.php.net/diff.php/ZendEnine2/zend_language_scanner.l?r1=1.131.2.1&r2=1.131.2.2&ty=u
I give infos to ilia, he likes to fix that.
------------------------------------------------------------------------
[2005-11-26 17:51:26] frisauf at comnet dot cz
Description:
------------
I have found unexpected behaviour in PHP 5.1.0.
Escaping braces in strings doesn't work as in previous version.
Reproduce code:
---------------
$string="abc";
echo "... {$string} ...\n";
echo "... \{$string} ...\n";
Expected result:
----------------
php 5.0.5:
... abc ...
... {abc} ...
Actual result:
--------------
php 5.1.0:
... abc ...
... {$string} ...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35411&edit=1