Bug #16763 Updated: '<?=', and '<%=' are equivalent to echo, but '<?php=' is not

From: Date: Fri, 24 May 2002 19:09:48 +0000
Subject: Bug #16763 Updated: '<?=', and '<%=' are equivalent to echo, but '<?php=' is not
References: 1  Groups: php.bugs php.doc 
Request: Send a blank email to php-bugs+get-8426@lists.php.net to get a copy of this message
ID: 16763 Updated by: derick@php.net Reported By: tbrinkman@cinci.rr.com -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: ALL PHP Version: 4.2.0 Previous Comments: ------------------------------------------------------------------------ [2002-04-26 11:21:51] goba@php.net Erm, my prev not was not intended to be against this new <?php=?> form, I just intended to add some more info ;) ------------------------------------------------------------------------ [2002-04-26 11:20:59] goba@php.net > 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] tbrinkman@cinci.rr.com 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] yohgaki@php.net 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] rasmus@php.net Removing <?= would also improve consistency. I don't buy the consistency argument. ------------------------------------------------------------------------ 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

« previous php.bugs (#8426) next »