Re: Option to enable echo tags when short tags are turned off
| From: | Gustavo Lopes | Date: | Mon, 15 Nov 2010 02:44:48 +0000 |
| Subject: | Re: Option to enable echo tags when short tags are turned off | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50195@lists.php.net to get a copy of this message | ||
On Mon, 15 Nov 2010 02:37:17 -0000, Rasmus Lerdorf <rasmus@lerdorf.com> wrote:
On 11/14/10 5:43 PM, Stas Malyshev wrote:The problem with <?= is that more often that not, you need to run the text through htmlentities or similar, so it would be of very limited usefulness even if it could be relied on (i.e. it always worked). -- Gustavo LopesHi!Yup, I agree. I see no reason to kill <?=At the beginning of the year, someone put in a request for an option to enable echo tags when short tags are disabled (http://bugs.php.net/bug.php?id=50662). I've written a patch and twoI don't think we really need more options - I think we should just have <?= always work. There's no valid XML file out there that contains <?= and only people that use it are PHP programmes that don't care for XML validity. Why not just make it work finally? Yes, I know that was debated 100 times. But I still think disabling <?= makes no sense, so here it goes.