summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-01-03 13:22:16 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-01-03 13:22:39 +0100
commitb7d2882fee4e9c32c42c0fe057a3fdc41e100a06 (patch)
tree0d80eb65ce2f124ff7aee894b8e3fa638ce5329d
parentf23378d84aa1ef0f5a7081d5a31369008bedd3ee (diff)
downloadphp-git-b7d2882fee4e9c32c42c0fe057a3fdc41e100a06.tar.gz
Use zend_parse_parameters_none() instead of zend_parse_parameters_none_throw()
-rw-r--r--ext/spl/spl_array.c2
-rw-r--r--ext/spl/spl_dllist.c2
-rw-r--r--ext/spl/spl_observer.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c
index b9fdbd97c9..bc1713ee84 100644
--- a/ext/spl/spl_array.c
+++ b/ext/spl/spl_array.c
@@ -1829,7 +1829,7 @@ SPL_METHOD(Array, __serialize)
spl_array_object *intern = Z_SPLARRAY_P(ZEND_THIS);
zval tmp;
- if (zend_parse_parameters_none_throw() == FAILURE) {
+ if (zend_parse_parameters_none() == FAILURE) {
RETURN_THROWS();
}
diff --git a/ext/spl/spl_dllist.c b/ext/spl/spl_dllist.c
index a9c7a3f939..0330d903dc 100644
--- a/ext/spl/spl_dllist.c
+++ b/ext/spl/spl_dllist.c
@@ -1221,7 +1221,7 @@ SPL_METHOD(SplDoublyLinkedList, __serialize)
spl_ptr_llist_element *current = intern->llist->head;
zval tmp;
- if (zend_parse_parameters_none_throw() == FAILURE) {
+ if (zend_parse_parameters_none() == FAILURE) {
RETURN_THROWS();
}
diff --git a/ext/spl/spl_observer.c b/ext/spl/spl_observer.c
index 06b57cb68d..abdf45ef0f 100644
--- a/ext/spl/spl_observer.c
+++ b/ext/spl/spl_observer.c
@@ -877,7 +877,7 @@ SPL_METHOD(SplObjectStorage, __serialize)
spl_SplObjectStorageElement *elem;
zval tmp;
- if (zend_parse_parameters_none_throw() == FAILURE) {
+ if (zend_parse_parameters_none() == FAILURE) {
RETURN_THROWS();
}