Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43697 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6640 invoked from network); 14 Apr 2009 12:17:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Apr 2009 12:17:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=glen.84@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=glen.84@gmail.com; sender-id=pass; domainkeys=bad 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:62592] helo=mail-ew0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3D/E2-01762-2FE74E94 for ; Tue, 14 Apr 2009 08:17:55 -0400 Received: by ewy27 with SMTP id 27so2802891ewy.23 for ; Tue, 14 Apr 2009 05:17:51 -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=DMf6IjGIRACkQUVzTOAifLCyRrH7+jUWydtUqoUHF2g=; b=OuVKOcwEAp4qTgrA1NP4AdnLTRuNF6BSZLH6i7/XLuIMHy+FQ92nsGdsQ+nw/pXZ2j O8DeHk5BnRE7eAcnlduOkKtTyarTJWPhGUU+549dN0wvq9OQy/D8IucR3JltzQZxdsnT a6XihtgxJ4O/tfW6H67cuXnSXt7mQxgEGDL84= 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=Lt4V92HFeAc0e0LMvFJ1fHoZXE/gI+xXeJXIHCE3vtPfQag4msvoAaLd/SETP442A4 2z210sLS4EUAXn69F6M4iw43QwYxXV68cEROalJTu4uRIXSqoNbSxg5ZiVi8PvVx/1sh /pTkbMd+SPafg7y7QHXCbbca8Ip5hS2c/LeKw= Received: by 10.216.1.85 with SMTP id 63mr1765146wec.26.1239711471656; Tue, 14 Apr 2009 05:17:51 -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 m5sm15505499gve.10.2009.04.14.05.17.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 14 Apr 2009 05:17:51 -0700 (PDT) Message-ID: <49E47EE2.8040200@gmail.com> Date: Tue, 14 Apr 2009 14:17:38 +0200 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Kenan Sulayman CC: Philip Olson , 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=UTF-8 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) Why such a complicated-looking thing (that breaks syntax-highlighting, at least in my IDE), when you can just use: '; ?> Or turn short_open_tag off (and asp_tags on), and use: ... <%= $this->that; %> Glen. Kenan Sulayman wrote: > Hey Guys, > > Whenever I start an XHTML document, I do escape it this way: > > <xml version="1.0" encoding="utf-8"?> > > Where the > equals equals > > So, please do not deprecate it - because it's important for me :$ > > Thanks, > (c) Kenan Sulayman > Freelance Designer and Programmer > > Life's Live Poetry > > > > 2009/4/14 Philip Olson > > >> 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 >> >> >> >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> >> > >