Re: short_open_tag
| From: | Chris Shiflett | Date: | Wed, 16 Oct 2002 01:01:09 +0000 |
| Subject: | Re: short_open_tag | ||
| References: | 1 2 3 4 5 6 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89532@lists.php.net to get a copy of this message | ||
I'm -1 on removing short tags, whether now or for PHP5.
I use a Web host that allows short tags, and I can do this to add my XML header to be XHTML compliant:
<? echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\" ?>\n"; ?>
Yes, perhaps it is slightly annoying to not just be able to write the <?xml ... ?> without it being interpreted by PHP (I think that was the original argument, right?). However, I cannot imagine how someone can truly justify causing so much pain for so many PHP users for something semantic like this. Look at the hardship the register_globals change made, and that was:
1. Just a default setting that can be changed back rather than something we removed completely.
2. Something that had a significant purpose; it helps inexperienced developers avoid some common security mistakes.
Again, -1 from me.
Chris