Re: <?xml tags (was PDM Meeting Notes)
| From: | Johannes Schlueter | Date: | Sun, 27 Nov 2005 21:32:53 +0000 |
| Subject: | Re: <?xml tags (was PDM Meeting Notes) | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20675@lists.php.net to get a copy of this message | ||
Hi,
On Sunday 27 November 2005 22:20, Daniel Convissor wrote:
> First, PHP scripts are not XML files, so why are we concerned with what
> the XML standard says?
It isn't about the XML standard but about exceptions for the PHP parser and
why should <?xml be treated different from <?jsp or <?xsl or <?foo or ...
which all are used (hm, not sure about <?foo) and sometimes even in
combination with PHP.
> Second, PHP is frequently used to output XML files, necessitating such PHP
> scripts contain the string "<?xml" in them. But in order to ensure
> scripts work when short tags is on, one must write something contorted
> like:
>
> echo '<' . '?xml ...';
echo '<?xml ...';
just works fine.
> Third, if someone wrote a script using "<?xml" with short tags off instead
> of the above, PHP needlessly fails if short tags is on, eliminating
> portability.
so just remove short_tags :-)
johannes