Skip to content

Commit fc592c7

Browse files
WeakMap: convert zend_parse_parameters_none() to fast ZPP (#20643)
1 parent f35a497 commit fc592c7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Zend/zend_weakrefs.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -776,9 +776,7 @@ ZEND_METHOD(WeakMap, offsetUnset)
776776

777777
ZEND_METHOD(WeakMap, count)
778778
{
779-
if (zend_parse_parameters_none() == FAILURE) {
780-
RETURN_THROWS();
781-
}
779+
ZEND_PARSE_PARAMETERS_NONE();
782780

783781
zend_long count;
784782
zend_weakmap_count_elements(Z_OBJ_P(ZEND_THIS), &count);
@@ -787,9 +785,7 @@ ZEND_METHOD(WeakMap, count)
787785

788786
ZEND_METHOD(WeakMap, getIterator)
789787
{
790-
if (zend_parse_parameters_none() == FAILURE) {
791-
RETURN_THROWS();
792-
}
788+
ZEND_PARSE_PARAMETERS_NONE();
793789

794790
zend_create_internal_iterator_zval(return_value, ZEND_THIS);
795791
}

0 commit comments

Comments
 (0)