RE: [PHP-DEV] short_open_tag

From: Date: Thu, 17 Oct 2002 10:02:06 +0000
Subject: RE: [PHP-DEV] short_open_tag
Groups: php.dev 
Request: Send a blank email to php-dev+get-89631@lists.php.net to get a copy of this message
> -----Original Message----- > From: Yasuo Ohgaki [mailto:yohgaki@ohgaki.net] > Sent: 17 October 2002 06:16 [snip] > >>Even if we never change the default, > >><?php echo "<?xml ......?>";?> works always w/o patch. [snip] > We may even have XML processor that processes PHP code in XML > documents in the future. i.e. PHP interpreter is invoked from > XML processor. ... in which case your php echo statement above won't parse properly. Since the definition of an XML PI block is effectively: <?tagname "any text except the sequence ?>" ?> -- without any reference to the syntax of what's inside the block -- a true XML parser will think the <?php block ends at the first ?>, the one *inside* *the* *quotes*. A proper XML conformant block would have to do something like: <?php echo "<?xml ......?".">";?> Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.dev (#89631) next »