mirror of
https://github.com/php/php-src.git
synced 2024-11-26 03:16:33 +08:00
Use zend_hash_add_empty_element
This commit is contained in:
parent
bc7a582f84
commit
060983b184
@ -176,7 +176,7 @@ int php_session_register_serializer(const char *name,
|
||||
int (*decode)(PS_SERIALIZER_DECODE_ARGS));
|
||||
|
||||
#define PS_ADD_VARL(name,namelen) \
|
||||
zend_hash_update(&PS(vars), name, namelen + 1, 0, 0, NULL)
|
||||
zend_hash_add_empty_element(&PS(vars), name, namelen + 1)
|
||||
|
||||
#define PS_ADD_VAR(name) PS_ADD_VARL(name, strlen(name))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user