Skip to content

Commit b7d2882

Browse files
committed
Use zend_parse_parameters_none() instead of zend_parse_parameters_none_throw()
1 parent f23378d commit b7d2882

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ext/spl/spl_array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1829,7 +1829,7 @@ SPL_METHOD(Array, __serialize)
18291829
spl_array_object *intern = Z_SPLARRAY_P(ZEND_THIS);
18301830
zval tmp;
18311831

1832-
if (zend_parse_parameters_none_throw() == FAILURE) {
1832+
if (zend_parse_parameters_none() == FAILURE) {
18331833
RETURN_THROWS();
18341834
}
18351835

ext/spl/spl_dllist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ SPL_METHOD(SplDoublyLinkedList, __serialize)
12211221
spl_ptr_llist_element *current = intern->llist->head;
12221222
zval tmp;
12231223

1224-
if (zend_parse_parameters_none_throw() == FAILURE) {
1224+
if (zend_parse_parameters_none() == FAILURE) {
12251225
RETURN_THROWS();
12261226
}
12271227

ext/spl/spl_observer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ SPL_METHOD(SplObjectStorage, __serialize)
877877
spl_SplObjectStorageElement *elem;
878878
zval tmp;
879879

880-
if (zend_parse_parameters_none_throw() == FAILURE) {
880+
if (zend_parse_parameters_none() == FAILURE) {
881881
RETURN_THROWS();
882882
}
883883

0 commit comments

Comments
 (0)