diff --git a/Zend/zend.c b/Zend/zend.c index 5670dae703ba9..b81474a62c7da 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -511,10 +511,10 @@ static FILE *zend_fopen_wrapper(const char *filename, zend_string **opened_path) /* }}} */ #ifdef ZTS -static zend_bool short_tags_default = 1; +static zend_bool short_tags_default = 0; static uint32_t compiler_options_default = ZEND_COMPILE_DEFAULT; #else -# define short_tags_default 1 +# define short_tags_default 0 # define compiler_options_default ZEND_COMPILE_DEFAULT #endif diff --git a/ext/standard/tests/strings/strip_tags_basic1.phpt b/ext/standard/tests/strings/strip_tags_basic1.phpt index 164cf504522a9..77cab238769fc 100644 --- a/ext/standard/tests/strings/strip_tags_basic1.phpt +++ b/ext/standard/tests/strings/strip_tags_basic1.phpt @@ -1,7 +1,5 @@ --TEST-- Test strip_tags() function : basic functionality - with default arguments ---INI-- -short_open_tag = on --FILE-- --INI-- -short_open_tag=1 +short_open_tag=On --FILE-- --EXPECTF-- +Deprecated: Directive 'short_open_tag' is deprecated in Unknown on line 0 array(49) { [0]=> array(3) { diff --git a/ext/tokenizer/tests/token_get_all_variation15.phpt b/ext/tokenizer/tests/token_get_all_variation15.phpt index 56269f5d01463..b9e6c1fd9f00c 100644 --- a/ext/tokenizer/tests/token_get_all_variation15.phpt +++ b/ext/tokenizer/tests/token_get_all_variation15.phpt @@ -2,8 +2,6 @@ Test token_get_all() function : usage variations - heredoc string for 'source' --SKIPIF-- ---INI-- -short_open_tag=On --FILE-- tags as PHP source which should be processed as such. It is ; generally recommended that should be used and that this feature @@ -180,11 +176,8 @@ engine = On ; documents, however this remains supported for backward compatibility reasons. ; Note that this directive does not control the tags as PHP source which should be processed as such. It is ; generally recommended that should be used and that this feature @@ -185,11 +181,8 @@ engine = On ; documents, however this remains supported for backward compatibility reasons. ; Note that this directive does not control the Finished --EXPECT-- +Deprecated: Directive 'short_open_tag' is deprecated in Unknown on line 0 Used a short tag Finished diff --git a/win32/build/config.w32.h.in b/win32/build/config.w32.h.in index 0403f6c5428bb..c6d9ce2f9868b 100644 --- a/win32/build/config.w32.h.in +++ b/win32/build/config.w32.h.in @@ -24,7 +24,7 @@ /* PHP Runtime Configuration */ #define PHP_URL_FOPEN 1 #define USE_CONFIG_FILE 1 -#define DEFAULT_SHORT_OPEN_TAG "1" +#define DEFAULT_SHORT_OPEN_TAG "0" /* Platform-Specific Configuration. Should not be changed. */ #define PHP_SIGCHILD 0