diff options
author | Zeev Suraski <zeev@php.net> | 1999-12-31 13:56:59 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-12-31 13:56:59 +0000 |
commit | f2d703e916e767e86c2d6434e809f29f6906f5fc (patch) | |
tree | d15df1e02c73ceac0b796190be44e48f0b537b42 /Zend/zend.c | |
parent | 400ee6caa0353d8b32797dad345be6da1dd07e2f (diff) | |
download | php-git-f2d703e916e767e86c2d6434e809f29f6906f5fc.tar.gz |
- Nuke undefined_variable_string
- Introduce IS_UNSET
Diffstat (limited to 'Zend/zend.c')
-rw-r--r-- | Zend/zend.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Zend/zend.c b/Zend/zend.c index 2aa5cbb0d1..5297d8ef9a 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -117,6 +117,9 @@ ZEND_API void zend_make_printable_zval(zval *expr, zval *expr_copy, int *use_cop return; } switch (expr->type) { + case IS_UNSET: + expr_copy->value.str.len = 0; + expr_copy->value.str.val = empty_string; case IS_BOOL: #if 1 if (expr->value.lval) { @@ -336,9 +339,7 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions) /* This zval can be used to initialize allocate zval's to an uninit'ed value */ zval_used_for_init.is_ref = 0; zval_used_for_init.refcount = 1; - zval_used_for_init.type = IS_STRING; - zval_used_for_init.value.str.val = undefined_variable_string; - zval_used_for_init.value.str.len = 0; + zval_used_for_init.type = IS_UNSET; #ifdef ZTS global_constants_table = NULL; |