Open GoogleCodeExporter opened 9 years ago
all major frameworks require short tags these days
zend, code ig, etc...
it's the new normal so I downvote this issue, short tags should be used in the
views for brevity.
Original comment by JimI...@gmail.com
on 20 Oct 2010 at 6:27
I do not agree with you on that Jim. Also can you point to where Zend requires
it? We are an exclusive ZF shop and do not have short tags enabled on any of
our production machines. Personally I find it lazy and bad to use.
Original comment by errr.errr
on 22 Oct 2010 at 4:17
From the PHP.ini file included as standard:
"This directive determines whether or not PHP will recognize code between <?
and ?> tags as PHP source which should be processed as such. It's been
recommended for several years that you not use the short tag "short cut" and
instead to use the full <?php and ?> tag combination. With the wide spread use
of XML and use of these tags by other languages, the server can become easily
confused and end up parsing the wrong code in the wrong context. But because
this short cut has been a feature for such a long time, it's currently still
supported for backwards compatibility, but we recommend you don't use them."
See also http://php.net/short-open-tag
And I also have never ever come across a framework that requires short open
tags; at least not in the last few years, anyway...
Original comment by annettev...@gmail.com
on 29 Oct 2010 at 1:34
please see attached patch
Original comment by netma...@googlemail.com
on 28 Nov 2010 at 3:19
Attachments:
Recent PHP allows use of <?=variable?> for <?php echo variable;?> so you can
still get brevity without allowing short tags.
Original comment by saiv...@gmail.com
on 25 Jun 2014 at 12:14
Original issue reported on code.google.com by
ozh...@gmail.com
on 22 Aug 2010 at 6:53