|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-11-26 17:51 UTC] 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} ...
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 17:00:01 2025 UTC |
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): ----------------------------- \{ $