Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41549 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27914 invoked from network); 29 Oct 2008 09:53:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Oct 2008 09:53:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=dave@dmi.me.uk; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dave@dmi.me.uk; sender-id=pass Received-SPF: pass (pb1.pair.com: domain dmi.me.uk designates 213.171.205.116 as permitted sender) X-PHP-List-Original-Sender: dave@dmi.me.uk X-Host-Fingerprint: 213.171.205.116 unknown Received: from [213.171.205.116] ([213.171.205.116:58474] helo=scaramanga.siterage.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/4E-48169-49238094 for ; Wed, 29 Oct 2008 04:53:25 -0500 Received: from localhost (scaramanga.siterage.net [127.0.0.1]) by localhost.akadia.com (SiteRage Mail Server) with ESMTP id 4C4CCCED2; Wed, 29 Oct 2008 09:53:22 +0000 (GMT) X-Spam-Flag: NO X-Spam-Score: -4.322 X-Spam-Level: X-Spam-Status: No, score=-4.322 required=5 tests=[ALL_TRUSTED=-1.8, AWL=0.076, BAYES_00=-2.599, DNS_FROM_SECURITYSAGE=0.001] Received: from scaramanga.siterage.net ([127.0.0.1]) by localhost (scaramanga.siterage.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id rH1PosIVA8eV; Wed, 29 Oct 2008 09:53:21 +0000 (GMT) Received: from [192.168.201.2] (ip9.net195-72-173.ci-net.com [195.72.173.9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by scaramanga.siterage.net (SiteRage Mail Server) with ESMTPSA id 6E337CEC2; Wed, 29 Oct 2008 09:53:21 +0000 (GMT) Message-ID: <49083290.2040104@dmi.me.uk> Date: Wed, 29 Oct 2008 09:53:20 +0000 User-Agent: Thunderbird 2.0.0.17 (X11/20080914) MIME-Version: 1.0 To: =?UTF-8?B?UGF3ZcWCIFN0cmFkb21za2k=?= CC: internals@lists.php.net, Arvids Godjuks , Josh References: <6fef9b880810282117v569d3064l752902daaa285a25@mail.gmail.com> <9b3df6a50810282353oaedfde5qf62df50876760170@mail.gmail.com> <200810291001.47422.pstradomski@gmail.com> In-Reply-To: <200810291001.47422.pstradomski@gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Constants in double-quoted strings From: dave@dmi.me.uk (Dave Ingram) > I only worry it could break BC - people might have used "{SOMETEXT}" in > strings and not expect it to be interpolated (I've done so myself). > I've done that a lot, and I've seen quite a bit of templating code that does the same. My personal opinion is that interpolating constants would just lead to trouble, one way or another. Even something like "{#SOMETEXT}" could be problematic. I would definitely discourage interpolation without some sort of sigil though... barewords (in brackets or not) are too likely to break BC. Dave