mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Remove PS_DEL_VAR macro, always use PS_DEL_VARL()
This commit is contained in:
parent
84ed9d387f
commit
2258453ba3
@ -169,8 +169,6 @@ PHPAPI void php_session_set_id(char *id TSRMLS_DC);
|
||||
#define PS_DEL_VARL(name,namelen) \
|
||||
zend_hash_del(&PS(vars), name, namelen + 1);
|
||||
|
||||
#define PS_DEL_VAR(name) PS_DEL_VARL(name, strlen(name))
|
||||
|
||||
#define PS_ENCODE_VARS \
|
||||
char *key; \
|
||||
uint key_length; \
|
||||
|
@ -1276,7 +1276,7 @@ PHP_FUNCTION(session_unregister)
|
||||
|
||||
convert_to_string_ex(p_name);
|
||||
|
||||
PS_DEL_VAR(Z_STRVAL_PP(p_name));
|
||||
PS_DEL_VARL(Z_STRVAL_PP(p_name), Z_STRLEN_PP(p_name));
|
||||
|
||||
RETURN_TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user