Re: Re: Is it true that short_open_tag is deprecated in PHP 6?
| From: | Arvids Godjuks | Date: | Tue, 14 Apr 2009 15:11:10 +0000 |
| Subject: | Re: Re: Is it true that short_open_tag is deprecated in PHP 6? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-43701@lists.php.net to get a copy of this message | ||
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!