Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46707 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10400 invoked from network); 13 Jan 2010 17:10:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jan 2010 17:10:15 -0000 Authentication-Results: pb1.pair.com header.from=news@ger.gmane.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.12 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.12 lo.gmane.org Linux 2.6 Received: from [80.91.229.12] ([80.91.229.12:54026] helo=lo.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3A/CB-00773-67EFD4B4 for ; Wed, 13 Jan 2010 12:10:14 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NV6jR-0005Kj-MK for internals@lists.php.net; Wed, 13 Jan 2010 18:10:09 +0100 Received: from 200.56.172.118 ([200.56.172.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Jan 2010 18:10:09 +0100 Received: from geissert by 200.56.172.118 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Jan 2010 18:10:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Followup-To: gmane.comp.php.devel Date: Wed, 13 Jan 2010 11:06:56 -0600 Lines: 43 Message-ID: References: <4B4D2883.5040703@lerdorf.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: 200.56.172.118 Sender: news Subject: Re: [PHP-DEV] Throwing an E_DEPRECATED for short_open_tag From: geissert@debian.org (Raphael Geissert) Rasmus Lerdorf wrote: > Raphael Geissert wrote: >> However, we would like to contribute in the quest to make applications >> stop using short_open_tag. To do so, we have decided to throw an >> E_DEPRECATED warning when an application makes use of short_open_tag. The >> current implementation can be found at [1]. >> >> How does this sound? > > We have no plans to deprecate the short open tag. So throwing an > E_DEPRECATED would not be appropriate. > True. An idea I just had was to continue throwing E_DEPRECATED (or a warning with a most appropriate name, if one is added) iff short tags are used without explicitly enabling them at runtime. I haven't looked at how the short_open_tag runtime switch was implemented so I don't know if it's possible or not. This would for example make the following code throw a warning: foo.php But not this one: bar.php Does that sound more reasonable? or do you have another idea? Cheers, -- Raphael Geissert - Debian Developer www.debian.org - get.debian.net