ID: 16763 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Documentation problem Operating System: ALL PHP Version: 4.2.0 New Comment:
Erm, my prev not was not intended to be against this new <?php=?> form, I just intended to add some more info ;) Previous Comments: ------------------------------------------------------------------------ [2002-04-26 11:20:59] [EMAIL PROTECTED] > People who do like the shorthand method > will no longer have to write code using an > optional tag style which requires an ini > setting which is NOT set on every(or > even most?) servers. ..and which tag is not XML safe. BTW <?php=$var?> is still not XML safe, so this is not a real argument ;) XML 1.0 specifies PIs: '<?' PITarget (S (Char * ... which means, that a space is needed after PITarget (which is php in this case). ------------------------------------------------------------------------ [2002-04-26 11:16:17] [EMAIL PROTECTED] Actually, removing <?= wouldn't improve consistency unless you also removed <%=. Nobody, it seems, is actually willing to remove the short hand, so the only way to improve consistency is to support it in all three cases. People who don't like the shorthand method will continue to act as if it doesn't exist. People who do like the shorthand method will no longer have to write code using an optional tag style which requires an ini setting which is NOT set on every(or even most?) servers. ------------------------------------------------------------------------ [2002-04-25 20:09:34] [EMAIL PROTECTED] Removing <?= and <%= works, too ;) We are sure now. There will be people curious about not having <?php=, since there are <?= and <%=. It looks we are better to document about echo short cut, explicitly. ------------------------------------------------------------------------ [2002-04-25 19:27:03] [EMAIL PROTECTED] Removing <?= would also improve consistency. I don't buy the consistency argument. ------------------------------------------------------------------------ [2002-04-25 19:13:34] [EMAIL PROTECTED] I porposed the same thing monthes ago. I agree. It's strange not to have <?php= since <?php tag is the only portable tag. Anyway, in PHP, there are too many inconsistency to note and it's one of them. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16763 -- Edit this bug report at http://bugs.php.net/?id=16763&edit=1