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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php