Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28567 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78264 invoked by uid 1010); 23 Mar 2007 06:29:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78246 invoked from network); 23 Mar 2007 06:29:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Mar 2007 06:29:46 -0000 Authentication-Results: pb1.pair.com header.from=tokul@users.sourceforge.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=tokul@users.sourceforge.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain users.sourceforge.net from 213.197.162.99 cause and error) X-PHP-List-Original-Sender: tokul@users.sourceforge.net X-Host-Fingerprint: 213.197.162.99 avilys.eik.lt Linux 2.6 Received: from [213.197.162.99] ([213.197.162.99:53401] helo=avilys.eik.lt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/11-02386-7D373064 for ; Fri, 23 Mar 2007 01:29:45 -0500 Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id C974E1F5177 for ; Fri, 23 Mar 2007 08:29:01 +0200 (EET) Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id B329E1F5176 for ; Fri, 23 Mar 2007 08:29:01 +0200 (EET) Received: from 195.22.180.233 (NaSMail authenticated user tomas@topolis.lt) by avilys.eik.lt with HTTP; Fri, 23 Mar 2007 08:29:01 +0200 (EET) Message-ID: <41165.195.22.180.233.1174631341.squirrel@avilys.eik.lt> In-Reply-To: <62.AB.06941.67833064@pb1.pair.com> References: <62.AB.06941.67833064@pb1.pair.com> Date: Fri, 23 Mar 2007 08:29:01 +0200 (EET) To: internals@lists.php.net User-Agent: NaSMail/1.0 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] String BC break \{$a} From: tokul@users.sourceforge.net ("Tomas Kuliavas") > Hi there, > looking around quickly I couldn't find any documentation on the > following change: > $a = "foo"; echo "\{$a}"; > > PHP 4.4.4: {foo} > PHP 5.2.1: \{foo} > > I didn't check which exact version introduced this change. Some > third-party code used this obscure construct and failed when migrating > from PHP 4 to PHP 5. > > Was this intentional and if yes, should it be documented in > http://www.php.net/manual/en/migration5.incompatible.php ? > > If this has been discussed before then I apologize. It was changed in 5.1.0-5.1.1 versions. According to PHP Manual (http://www.php.net/language.types.string) curly brackets are not escaped with backslash. Escape worked in older PHP versions. It does not work in 5.1.1+. http://bugs.php.net/31341 http://bugs.php.net/35411