diff options
author | Antony Dovgal <tony2001@php.net> | 2006-11-24 11:36:40 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-11-24 11:36:40 +0000 |
commit | 63df6688b5161c73324838f533b52662aa3a6c6a (patch) | |
tree | 78f82860d80d78558d744e10f6ed4618188315bf | |
parent | c5808d70295966ca1e1086c6edaea2469bda25b8 (diff) | |
download | php-git-63df6688b5161c73324838f533b52662aa3a6c6a.tar.gz |
initialize CG(literal_type) using ZEND_STR_TYPE macro
add CG(literal_type) initialization in non-ZTS mode
fixes backticks operator
-rw-r--r-- | Zend/zend.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend.c b/Zend/zend.c index 380c3bfdf5..23ac1e13af 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -668,6 +668,7 @@ static void zend_set_default_compile_time_values(TSRMLS_D) CG(asp_tags) = 0; CG(short_tags) = 1; CG(extended_info) = 0; + CG(literal_type) = ZEND_STR_TYPE; } @@ -805,7 +806,7 @@ static void compiler_globals_ctor(zend_compiler_globals *compiler_globals TSRMLS zend_set_default_compile_time_values(TSRMLS_C); CG(interactive) = 0; - CG(literal_type) = IS_STRING; + CG(literal_type) = ZEND_STR_TYPE; compiler_globals->auto_globals = (HashTable *) malloc(sizeof(HashTable)); zend_u_hash_init_ex(compiler_globals->auto_globals, global_auto_globals_table->nNumOfElements, NULL, NULL, 1, UG(unicode), 0); |