diff options
Diffstat (limited to 'Zend/zend_API.h')
-rw-r--r-- | Zend/zend_API.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h index c1a3edb486..b413fff842 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -177,6 +177,8 @@ ZEND_API int add_property_stringl(zval *arg, char *key, char *str, uint length, var->value.str.val = (str); \ var->value.str.len = strlen((str)); \ var->type = IS_STRING; \ + var->is_ref=0; \ + var->refcount=1; \ zend_hash_update(&EG(symbol_table), (n), strlen((n))+1, &var, sizeof(zval *), NULL); \ } \ } @@ -188,6 +190,8 @@ ZEND_API int add_property_stringl(zval *arg, char *key, char *str, uint length, var->value.str.val = (v); \ var->value.str.len = (l); \ var->type = IS_STRING; \ + var->is_ref=0; \ + var->refcount=1; \ zend_hash_update(&EG(symbol_table), name, strlen(name)+1, &var, sizeof(zval *), NULL); \ } \ } @@ -197,6 +201,8 @@ ZEND_API int add_property_stringl(zval *arg, char *key, char *str, uint length, \ var->value.lval = (v); \ var->type = IS_LONG; \ + var->is_ref=0; \ + var->refcount=1; \ zend_hash_update(&EG(symbol_table), (n), strlen((n))+1, &var, sizeof(zval *), NULL); \ } \ } @@ -206,6 +212,8 @@ ZEND_API int add_property_stringl(zval *arg, char *key, char *str, uint length, \ var->value.dval = (v); \ var->type = IS_DOUBLE; \ + var->is_ref=0; \ + var->refcount=1; \ zend_hash_update(&EG(symbol_table)), (n), strlen((n))+1, &var, sizeof(zval *), NULL); \ } \ } |