diff options
Diffstat (limited to 'ext/spl/php_spl.c')
-rw-r--r-- | ext/spl/php_spl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index 06371b741d..5c42801a75 100644 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -94,7 +94,7 @@ PHP_FUNCTION(class_parents) if (Z_TYPE_P(obj) != IS_OBJECT && Z_TYPE_P(obj) != IS_STRING) { zend_type_error("object or string expected"); - return; + RETURN_THROWS(); } if (Z_TYPE_P(obj) == IS_STRING) { @@ -127,7 +127,7 @@ PHP_FUNCTION(class_implements) } if (Z_TYPE_P(obj) != IS_OBJECT && Z_TYPE_P(obj) != IS_STRING) { zend_type_error("object or string expected"); - return; + RETURN_THROWS(); } if (Z_TYPE_P(obj) == IS_STRING) { @@ -156,7 +156,7 @@ PHP_FUNCTION(class_uses) } if (Z_TYPE_P(obj) != IS_OBJECT && Z_TYPE_P(obj) != IS_STRING) { zend_type_error("object or string expected"); - return; + RETURN_THROWS(); } if (Z_TYPE_P(obj) == IS_STRING) { |