Re: <?= and <%= both work, why not <?php=

From: Date: Fri, 26 Apr 2002 19:04:43 +0000
Subject: Re: <?= and <%= both work, why not <?php=
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-83389@lists.php.net to get a copy of this message
I'm pretty sure it is. It parses fine according to Xerces, at any rate. At first, I was thinking the greater than comparison would cause problems, as <xsl:if> elements like seeing the test written as "foo &gt; bar", but when you have the symbol inside of a processing instruction, it's fine. J Zeev Suraski wrote: > At 21:07 26/04/2002, Sterling Hughes wrote: >>The whole point of the <?php tag is to allow people to embed commands in >>XML documents. When short tags are disabled, commands such as <% echo >>'HELLO'; %> don't work. If you allow <?php=?> syntax, it is not >>valid >>XML, which negates the point of having <?php in the first place. > > He was wrong about the 2nd example, but I'm pretty sure about his first: > > <?php if ($foo > $bar) > ... > ?> > > Is this valid XML? > > > [I'm not taking sides on whether <?php= should be supported or not] > > Zeev

« previous php.dev (#83389) next »