Re: short_open_tag

From: Date: Fri, 21 Mar 2008 19:48:03 +0000
Subject: Re: short_open_tag
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-36268@lists.php.net to get a copy of this message
On Fri, Mar 21, 2008 at 8:37 PM, Stanislav Malyshev <stas@zend.com> wrote: > > I'd rather see <?php= than having this whole "short_open_tag" thing at > > all. > > Does <?php= work? I though echo shortcut works only with short tags. > <?php= is not much worse than <?= so it'd be OK with me. Downside would > be template systems couldn't use it until 5.3 is widely deployed - which > means no template system can use it as standard for about 2-3 years at > least. Unless we put <?php= in 5.2, which would make me a happy camper, > but might be a trouble for others. > > > > I'd even use it myself. But I will not EVER enable the damn short tags > > again. And won't allow anyone else doing it either. And speaking of > > What's wrong with short tags, can anybody explain me? The main reason is that they are not valid processing instructions. See http://www.w3.org/TR/REC-xml/#sec-pi Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#36268) next »