Hi,
Plain <? has an additional problem of affecting the ability to include XML
files from PHP source code.
readfile('file.xml');
From what I know, in the future versions of PHP short tags are going to be
disabled by default. Considering the conflicts with XML syntax, that's
understandable.
// no conflict
<?='<?xml version="1.0"?>'?>
// conflict with full PHP tags
<?php echo '?>' ?>
// conflict with full PHP tags
<?php $a = $b; /* ?> */ ?>
I think these four examples should render any argument containing "XML" and
"PHP" in the same sentence invalid.
My suggestion is, follow your own notes: "Leave short tags alone - never
talk about it again" (http://wiki.php.net/summits/pdmnotesmay09).
Regards,
Stan Vassilev
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php