Bug #35411 [Com]: brace escape problem (changed behaviour)

From: Date: Sun, 16 Feb 2014 23:55:46 +0000
Subject: Bug #35411 [Com]: brace escape problem (changed behaviour)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184332@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=35411&edit=1 ID: 35411 Comment by: mail at mkharitonov dot net Reported by: frisauf at comnet dot cz Summary: brace escape problem (changed behaviour) Status: Closed Type: Bug Package: Strings related Operating System: linux PHP Version: 5.1.0 Assigned To: iliaa Block user comment: N Private report: N New Comment: Behaviour is still not matched to the expected result. Actual result (in php 5.5.9): ----------------------------- ... abc ... ... \{abc} ... Another example: ---------------- print "\{ \$"; Expected result: ---------------- { $ Actual result (in php 5.5.9): ----------------------------- \{ $ Previous Comments: ------------------------------------------------------------------------ [2005-11-27 07:49:14] iliaa@php.net 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. ------------------------------------------------------------------------ [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 https://bugs.php.net/bug.php?id=35411&edit=1

« previous php.bugs (#184332) next »