[PHP-DEV] PHP 4.0 Bug #6775: Allow <?=$value?> as shortcut under XML with short_tags off From: andy.war <email protected>
Date: 09/16/00

From: andy.war <email protected>
Operating system: Linux 2.2.17
PHP version: 4.0.1pl2
PHP Bug Type: Feature/Change Request
Bug description: Allow &lt;?=$value?&gt; as shortcut under XML with short_tags off

Using <?=$value?> as a shortcut to <?php echo $value ?> fails
when using XHTML or XML, as the short_open_tag option has to
be turned off.

Is it possible to allow this one exception in this situation, as it is
such a great shortcut.

I can't find anything in the XML specs that would prevent "<?="
being allowed as a tag as an alternative to "<?php echo". A valid
XML tag must begin with a letter, underscore or colon AFAIK (with
the only exception you cannot start the tag with XML).

--
'./configure' '--with-mysql' '--with-apxs=/usr/local/apache/bin/apxs' 
'--enable-track-vars' '--enable-versioning'

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>