Re: Re: Is it true that short_open_tag is deprecated in PHP 6?
| From: | Glen | Date: | Tue, 14 Apr 2009 12:26:15 +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-43698@lists.php.net to get a copy of this message | ||
I didn't say PHP tags were valid XML. I said short_open_tag conflicts
with <?xml and other PIs.
<% is not valid XML either, but it doesn't conflict with processing
instructions.
Glen.
Stan Vassilev | FM wrote:
> Hi,
>
> A vote in support of short tags, although last time I checked they
> were not removed in PHP6 (and I hate to see this brought up once more).
> On top of that, the supposed XML conflict argument is not fully
> thought through, since full PHP tags are not XML compliant either:
>
> <?php echo "?>"; ?>
>
> In the above example, XML parsers would do this:
>
> Processing directive: <?php echo "?>
> Text node: "; ?
> Parse error: >
>
> As you see, it's a much simpler world when we realize PHP was never
> supposed to be XML in the first place. However it was supposed to be a
> preprocessing templating engine, and so we need to keep it optimized
> for that.
>
> Regards,
> Stan Vassilev
>