Skip to content

Commit 160cd8d

Browse files
committed
Tinker with the wording of the short_open_tag description.
I'm still not thrilled with this, but it's a bit better and addresses the issues noted in bug #65644. Plus, it now mentions the decoupling of <?=.
1 parent 3c3b2b5 commit 160cd8d

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

php.ini-development

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,12 @@
197197
engine = On
198198

199199
; This directive determines whether or not PHP will recognize code between
200-
; <? and ?> tags as PHP source which should be processed as such. It's been
201-
; recommended for several years that you not use the short tag "short cut" and
202-
; instead to use the full <?php and ?> tag combination. With the wide spread use
203-
; of XML and use of these tags by other languages, the server can become easily
204-
; confused and end up parsing the wrong code in the wrong context. But because
205-
; this short cut has been a feature for such a long time, it's currently still
206-
; supported for backwards compatibility, but we recommend you don't use them.
200+
; <? and ?> tags as PHP source which should be processed as such. It is
201+
; generally recommended that <?php and ?> should be used and that this feature
202+
; should be disabled, as enabling it may result in issues when generating XML
203+
; documents, however this remains supported for backward compatibility reasons.
204+
; Note that this directive does not control the <?= shorthand tag, which can be
205+
; used regardless of this directive.
207206
; Default Value: On
208207
; Development Value: Off
209208
; Production Value: Off

php.ini-production

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,12 @@
197197
engine = On
198198

199199
; This directive determines whether or not PHP will recognize code between
200-
; <? and ?> tags as PHP source which should be processed as such. It's been
201-
; recommended for several years that you not use the short tag "short cut" and
202-
; instead to use the full <?php and ?> tag combination. With the wide spread use
203-
; of XML and use of these tags by other languages, the server can become easily
204-
; confused and end up parsing the wrong code in the wrong context. But because
205-
; this short cut has been a feature for such a long time, it's currently still
206-
; supported for backwards compatibility, but we recommend you don't use them.
200+
; <? and ?> tags as PHP source which should be processed as such. It is
201+
; generally recommended that <?php and ?> should be used and that this feature
202+
; should be disabled, as enabling it may result in issues when generating XML
203+
; documents, however this remains supported for backward compatibility reasons.
204+
; Note that this directive does not control the <?= shorthand tag, which can be
205+
; used regardless of this directive.
207206
; Default Value: On
208207
; Development Value: Off
209208
; Production Value: Off

0 commit comments

Comments
 (0)