diff options
Diffstat (limited to 'Zend/zend_closures.c')
-rw-r--r-- | Zend/zend_closures.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_closures.c b/Zend/zend_closures.c index b1bebaded4..3a17410b13 100644 --- a/Zend/zend_closures.c +++ b/Zend/zend_closures.c @@ -124,7 +124,7 @@ ZEND_METHOD(Closure, call) fci.params = NULL; if (zend_parse_parameters(ZEND_NUM_ARGS(), "o*", &newthis, &fci.params, &fci.param_count) == FAILURE) { - return; + RETURN_THROWS(); } closure = (zend_closure *) Z_OBJ_P(ZEND_THIS); @@ -333,7 +333,7 @@ ZEND_METHOD(Closure, fromCallable) char *error = NULL; if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &callable) == FAILURE) { - return; + RETURN_THROWS(); } if (Z_TYPE_P(callable) == IS_OBJECT && instanceof_function(Z_OBJCE_P(callable), zend_ce_closure)) { |