diff options
author | Sebastian Bergmann <sebastian@php.net> | 2003-04-10 17:02:31 +0000 |
---|---|---|
committer | Sebastian Bergmann <sebastian@php.net> | 2003-04-10 17:02:31 +0000 |
commit | 974f406eda43487aa250425249cdf03e8546f866 (patch) | |
tree | be98228cf54341068acee8605d96d5e54ea7284e | |
parent | 668fc20b97b935419f0e419472ae8b8669ee6969 (diff) | |
download | php-git-974f406eda43487aa250425249cdf03e8546f866.tar.gz |
Fix ZTS build. Fix warning.
-rw-r--r-- | Zend/zend_compile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index b05af5b53d..35abd84ac6 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -22,6 +22,7 @@ #include "zend_language_parser.h" #include "zend.h" #include "zend_compile.h" +#include "zend_constants.h" #include "zend_llist.h" #include "zend_API.h" #include "zend_fast_cache.h" @@ -194,7 +195,7 @@ void zend_do_fold_binary_op(zend_uchar op, znode *result, znode *op1, znode *op2 } else if (op == ZEND_MOD) { do_op = mod_function; } else if (op == ZEND_BW_NOT) { - bitwise_not_function(&result->u.constant, &op1->u.constant); + bitwise_not_function(&result->u.constant, &op1->u.constant TSRMLS_CC); return; } else if (op == ZEND_BOOL_XOR) { do_op = boolean_xor_function; @@ -2561,7 +2562,7 @@ void zend_do_fold_constant(znode *result, znode *constant_name TSRMLS_DC) if (zend_hash_find(&CG(active_class_entry)->constants_table, constant_name->u.constant.value.str.val, constant_name->u.constant.value.str.len+1, (void **) &zresult) != SUCCESS) { - if (zend_get_constant(constant_name->u.constant.value.str.val, constant_name->u.constant.value.str.len, &result->u.constant)) { + if (zend_get_constant(constant_name->u.constant.value.str.val, constant_name->u.constant.value.str.len, &result->u.constant TSRMLS_CC)) { return; } else { zend_error(E_COMPILE_ERROR, "Cannot find %s constant in class %s\n", |