diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2013-10-31 08:57:12 +0100 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2013-10-31 08:57:12 +0100 |
commit | 2361745806553db9099542d9237ade00dcee799b (patch) | |
tree | 8db4023bf325be29ba4f386cb6d1aac4f7911c9a /Zend/zend_variables.c | |
parent | 4218e89f8df4ca3897e3aad595e0c2c9cf4c3aca (diff) | |
download | php-git-2361745806553db9099542d9237ade00dcee799b.tar.gz |
Working commit for constant scalar expressions (with constants).
Tests will follow.
Diffstat (limited to 'Zend/zend_variables.c')
-rw-r--r-- | Zend/zend_variables.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c index d82e1642e7..095c16ca91 100644 --- a/Zend/zend_variables.c +++ b/Zend/zend_variables.c @@ -22,6 +22,7 @@ #include <stdio.h> #include "zend.h" #include "zend_API.h" +#include "zend_ast.h" #include "zend_globals.h" #include "zend_constants.h" #include "zend_list.h" @@ -47,6 +48,9 @@ ZEND_API void _zval_dtor_func(zval *zvalue ZEND_FILE_LINE_DC) } } break; + case IS_CONSTANT_AST: + ZEND_AST_DEL_REF(Z_AST_P(zvalue)); + break; case IS_OBJECT: { TSRMLS_FETCH(); @@ -81,6 +85,9 @@ ZEND_API void _zval_internal_dtor(zval *zvalue ZEND_FILE_LINE_DC) CHECK_ZVAL_STRING_REL(zvalue); str_free(zvalue->value.str.val); break; + case IS_CONSTANT_AST: + ZEND_AST_DEL_REF(Z_AST_P(zvalue)); + break; case IS_ARRAY: case IS_CONSTANT_ARRAY: case IS_OBJECT: @@ -139,6 +146,9 @@ ZEND_API void _zval_copy_ctor_func(zval *zvalue ZEND_FILE_LINE_DC) zvalue->value.ht = tmp_ht; } break; + case IS_CONSTANT_AST: + ZEND_AST_ADD_REF(Z_AST_P(zvalue)); + break; case IS_OBJECT: { TSRMLS_FETCH(); |