Broken compatibility with escaping { in php 5.2
| From: | Bogdan Ribic | Date: | Thu, 18 Jan 2007 13:06:16 +0000 |
| Subject: | Broken compatibility with escaping { in php 5.2 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-247318@lists.php.net to get a copy of this message | ||
Hi all,
Try this:
$a = '';
echo "\{$a}";
from php 4, it outputs "{}", from php 5.2 (one that comes with Zend 5.5) it outputs "\{}", thus breaking existing scripts.