Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23066 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88913 invoked by uid 1010); 1 May 2006 19:54:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 88898 invoked from network); 1 May 2006 19:54:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 May 2006 19:54:07 -0000 X-PHP-List-Original-Sender: brianm@dealnews.com X-Host-Fingerprint: 129.41.69.185 smtp.dealnews.com Linux 2.5 (sometimes 2.4) (4) Received: from ([129.41.69.185:19730] helo=smtp.dealnews.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 92/7E-18514-D5766544 for ; Mon, 01 May 2006 15:54:05 -0400 Received: (qmail 19564 invoked from network); 1 May 2006 15:53:59 -0400 Received: from unknown (HELO ?10.1.2.17?) (10.1.2.17) by 10.1.1.24 with SMTP; 1 May 2006 15:53:59 -0400 Message-ID: <44566738.4060605@dealnews.com> Date: Mon, 01 May 2006 14:53:28 -0500 User-Agent: Thunderbird 1.5.0.2 (Macintosh/20060406) MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: escaping braces From: brianm@dealnews.com (Brian Moon) There are severals bugs about this and I would like some clarification. http://bugs.php.net/bug.php?id=35527 http://bugs.php.net/bug.php?id=37263 Reproduce: --------------- PHP4: ------ ... abc ... ... {abc} ... PHP 5.1.2: ----------- ... abc ... ... \{abc} ... =============== Now, I can see changing it so that {} is not escapable. However, it is being escaped. The {} are not being evaluted with the variable in 5.1.2. However, the \ is being left in the string. IMO, you can't have it both ways. I expect from PHP5: -------------------- ... abc ... ... \abc ... Also, this is not listed in the upgrade notes at all http://www.php.net/README_UPGRADE_51.php. Thanks, Brian Moon dealnews.com