mirror of
https://github.com/php/php-src.git
synced 2026-04-18 21:41:22 +02:00
added is_ref=0 and refcount=1 to SET_VAR_* macros
This commit is contained in:
@@ -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); \
|
||||
} \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user