Re: Re: Is it true that short_open_tag is deprecated in PHP 6?
| From: | Rasmus Lerdorf | Date: | Tue, 14 Apr 2009 07:54:53 +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-43690@lists.php.net to get a copy of this message | ||
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.
Which is one of the reasons we decided not to remove them in PHP 6.
-Rasmus