1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Use ZEND_THROWS() where applicable in spl_array.c

This commit is contained in:
George Peter Banyard
2022-03-23 22:13:08 +00:00
parent 69ea2d8600
commit 2fa33d1def

View File

@@ -1574,7 +1574,7 @@ PHP_METHOD(ArrayObject, unserialize)
if (intern->nApplyCount > 0) {
zend_throw_error(NULL, "Modification of ArrayObject during sorting is prohibited");
return;
RETURN_THROWS();
}
/* storage */
@@ -1773,7 +1773,7 @@ PHP_METHOD(ArrayObject, __unserialize)
PHP_METHOD(ArrayObject, __debugInfo)
{
if (zend_parse_parameters_none() == FAILURE) {
return;
RETURN_THROWS();
}
RETURN_ARR(spl_array_get_debug_info(Z_OBJ_P(ZEND_THIS)));