Hi Marcus:

On Sun, Nov 27, 2005 at 11:58:16AM +0100, Marcus Boerger wrote:
> 
> To second this, the xml standard allows any name after '<?' as processing
> instruction. Widely in use is for example '<?jsp' and do you want to start
> special treatment for java stuff in PHP?  ;-)

First, PHP scripts are not XML files, so why are we concerned with what 
the XML standard says?

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 ...';

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.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to