Bug #6775 Updated: Allow <?=$value?> as shortcut under XML with short_tags off

From: Date: Tue, 29 Jan 2002 01:15:17 +0000
Subject: Bug #6775 Updated: Allow <?=$value?> as shortcut under XML with short_tags off
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-78379@lists.php.net to get a copy of this message
ID: 6775 Updated by: yohgaki Reported By: andy.war@ntlworld.com Old Status: Open Status: Closed Bug Type: Feature/Change Request Operating System: Linux 2.2.17 PHP Version: 4.0.1pl2 New Comment: This will not be changed. BTW, you may want to use echo "<?xml .....?>" . Previous Comments: ------------------------------------------------------------------------ [2000-09-16 07:27:14] andy.war@ntlworld.com 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' ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=6775&edit=1

« previous php.dev (#78379) next »