Re: Re: Is it true that short_open_tag is deprecated in PHP 6?

From: Date: Tue, 14 Apr 2009 15:16:13 +0000
Subject: Re: Re: Is it true that short_open_tag is deprecated in PHP 6?
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-43702@lists.php.net to get a copy of this message
As Jani put it:
PLEASE, let the dead horse be!
- David On 14.04.2009, at 17:11, Arvids Godjuks wrote:
Hello everyone. I've been writing <?php echo get('something')?> for some time now at the last project and it really sucks. I understand reason on depricating short_open_tag and I agree. But I have a proposal witch can ease templating. Remove short open tag, but leave <?=get('blah')?>. Bacicaly PHP parser should look for <?php or <?=, single <? is not allowed. That way: 1). short_open_tag is gone for good as an option in .ini. 2). Making templates doesn't suck 3). Backwards compability with old templates is preserved (old templates with <?= work fine). 4). <? in code is broken as you want it to be and makes coders fix it with <?php Everyone is happy, XML and others are safe. Yes, it's really irritating to write <?php echo every time!


Attachment: [application/pkcs7-signature] smime.p7s
« previous php.internals (#43702) next »