Skip to content

Commit 2147484

Browse files
committed
Changed default value of PHP short tags in Zend engine and Windows headers.
1 parent eb53003 commit 2147484

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Zend/zend.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,10 +511,10 @@ static FILE *zend_fopen_wrapper(const char *filename, zend_string **opened_path)
511511
/* }}} */
512512

513513
#ifdef ZTS
514-
static zend_bool short_tags_default = 1;
514+
static zend_bool short_tags_default = 0;
515515
static uint32_t compiler_options_default = ZEND_COMPILE_DEFAULT;
516516
#else
517-
# define short_tags_default 1
517+
# define short_tags_default 0
518518
# define compiler_options_default ZEND_COMPILE_DEFAULT
519519
#endif
520520

win32/build/config.w32.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/* PHP Runtime Configuration */
2525
#define PHP_URL_FOPEN 1
2626
#define USE_CONFIG_FILE 1
27-
#define DEFAULT_SHORT_OPEN_TAG "1"
27+
#define DEFAULT_SHORT_OPEN_TAG "0"
2828

2929
/* Platform-Specific Configuration. Should not be changed. */
3030
#define PHP_SIGCHILD 0

0 commit comments

Comments
 (0)