Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43695 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3787 invoked from network); 14 Apr 2009 12:05:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Apr 2009 12:05:22 -0000 Authentication-Results: pb1.pair.com header.from=glen.84@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=glen.84@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.179 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: glen.84@gmail.com X-Host-Fingerprint: 209.85.219.179 mail-ew0-f179.google.com Received: from [209.85.219.179] ([209.85.219.179:55183] helo=mail-ew0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/42-01762-10C74E94 for ; Tue, 14 Apr 2009 08:05:22 -0400 Received: by ewy27 with SMTP id 27so2796014ewy.23 for ; Tue, 14 Apr 2009 05:05:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Ho87mkZVeRoFJZf5BO8x6M1EjyktzHa8TD+j5PFr1YQ=; b=stULzWrHLJgc7kEnks3To4ORPY3BPvz/Hzc1YHYppzNGMEmcLpr4V+hOtEtfoqwCxo S4P5yfC2WuLnmq59D2c6PixPe+UwoEt+UKHSKPGSl0JeMgRSwjvFDfiClHT2SC1pmrK5 qBG490cIHBZj7NOHktMDEylQEssWyAEA8lI94= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=cNdac4E1Hc7bnFOmjVvcBZid+AZ5AZaurMV+/Y7y+8DCaX/i4xwPciHS6+DpS0N7LW ooiSqDsbEjVomrX9Wz22K8P7HMVCAO/Upc3gtxF1fSbYmjll0O28/FszogArhidWmr3H /tv/mfU3A0J08etMX0AAEGpUuSs9uCJadVUiQ= Received: by 10.216.18.199 with SMTP id l49mr1758247wel.23.1239710718999; Tue, 14 Apr 2009 05:05:18 -0700 (PDT) Received: from ?192.168.1.100? (dsl-240-11-65.telkomadsl.co.za [41.240.11.65]) by mx.google.com with ESMTPS id j8sm390640gvb.21.2009.04.14.05.05.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 14 Apr 2009 05:05:18 -0700 (PDT) Message-ID: <49E47BF2.3090807@gmail.com> Date: Tue, 14 Apr 2009 14:05:06 +0200 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Philip Olson CC: Stanislav Malyshev , Kalle Sommer Nielsen , Jeremy , internals@lists.php.net References: <49E352FD.6070008@gmail.com> <2dedb8a0904131124u57f2f32ei27083a289f7f18a4@mail.gmail.com> <49E39B3C.2020401@zend.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Is it true that short_open_tag is deprecated in PHP 6? From: glen.84@gmail.com (Glen) Thanks for the information, Philip. I hereby summon the BDFL ... erm, no pressure. :-) I really think ASP/JSP tags could be the answer. Glen. Philip Olson wrote: > > Today this topic may be the cloudiest and most heated in all of PHP. > Here's the factual history of our poor little short_open_tag directive: > > ------------------------------------------------ > php.ini values : short_open_tag > ------------------------------------------------ > > PHP 4, 5_0 > * Default behaviour : on > * php.ini-dist : on > * php.ini-recommended : on > > PHP 5_1, 5_2: > * Default behaviour : on > * php.ini-dist : on > * php.ini-recommended : off > > PHP 5_3: > * Default behaviour : on > * php.ini-development : off > * php.ini-production : off > > ------------------------------------------------ > php.ini descriptions : short_open_tag > ------------------------------------------------ > > In 5_2 our reason for discouraging it is: > > ; - short_open_tag = Off [Portability] > ; Using short tags is discouraged when developing code meant for > redistribution > ; since short tags may not be supported on the target server. > ; Allow the tags are > recognized. > ; NOTE: Using short tags should be avoided when developing > applications or > ; libraries that are meant for redistribution, or deployment on PHP > ; servers which are not under your control, because short tags may not > ; be supported on the target server. For portable, redistributable code, > ; be sure not to use short tags. > > In 5_3 it's: > > ; This directive determines whether or not PHP will recognize code > between > ; tags as PHP source which should be processed as such. It's > been > ; recommended for several years that you not use the short tag "short > cut" and > ; instead to use the full tag combination. With the wide > spread use > ; of XML and use of these tags by other languages, the server can > become easily > ; confused and end up parsing the wrong code in the wrong context. But > because > ; this short cut has been a feature for such a long time, it's > currently still > ; supported for backwards compatibility, but we recommend you don't > use them. > > ------------------------------------------------ > > This history strongly suggests PHP is hoping and subtly forcing the > world to stop using this directive, and although it's not deprecated > the wording and treatment makes it feel it could be any day now. This > situation must be clarified before 5_3 is released, and will likely > require our BDFL to do it. > > In related news, what came of this RFC? It still says "Under Discussion": > > - http://wiki.php.net/rfc/shortags > > Regards, > Philip > > >