mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
WeakMap: convert zend_parse_parameters_none() to fast ZPP (#20643)
This commit is contained in:
committed by
GitHub
parent
f35a497b9d
commit
fc592c78f2
@@ -776,9 +776,7 @@ ZEND_METHOD(WeakMap, offsetUnset)
|
||||
|
||||
ZEND_METHOD(WeakMap, count)
|
||||
{
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
zend_long count;
|
||||
zend_weakmap_count_elements(Z_OBJ_P(ZEND_THIS), &count);
|
||||
@@ -787,9 +785,7 @@ ZEND_METHOD(WeakMap, count)
|
||||
|
||||
ZEND_METHOD(WeakMap, getIterator)
|
||||
{
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
zend_create_internal_iterator_zval(return_value, ZEND_THIS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user