Skip to content

Commit 23378a8

Browse files
committed
Deprecate Short tags
1 parent 30df87f commit 23378a8

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

main/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2377,6 +2377,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
23772377
"Directive '%s' is deprecated",
23782378
{
23792379
"track_errors",
2380+
"short_open_tag",
23802381
NULL
23812382
}
23822383
},

php.ini-development

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@
148148
; Development Value: 5
149149
; Production Value: 5
150150

151+
; This directive is DEPRECATED.
151152
; short_open_tag
152-
; Default Value: On
153+
; Default Value: Off
153154
; Development Value: Off
154155
; Production Value: Off
155156

php.ini-production

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@
148148
; Development Value: 5
149149
; Production Value: 5
150150

151+
; This directive is DEPRECATED.
151152
; short_open_tag
152-
; Default Value: On
153+
; Default Value: Off
153154
; Development Value: Off
154155
; Production Value: Off
155156

tests/lang/short_tags.001.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ echo "Used a short tag\n";
88
?>
99
Finished
1010
--EXPECT--
11+
Deprecated: Directive 'short_open_tag' is deprecated in Unknown on line 0
1112
Used a short tag
1213
Finished

0 commit comments

Comments
 (0)