Re: Is there a technical reason <?= considered a "short tag"?
| From: | Stan Vassilev | Date: | Fri, 05 Jun 2009 13:12:49 +0000 |
| Subject: | Re: Is there a technical reason <?= considered a "short tag"? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44179@lists.php.net to get a copy of this message | ||
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