Skip to content

Commit 2fa33d1

Browse files
committed
Use ZEND_THROWS() where applicable in spl_array.c
1 parent 69ea2d8 commit 2fa33d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/spl/spl_array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,7 @@ PHP_METHOD(ArrayObject, unserialize)
15741574

15751575
if (intern->nApplyCount > 0) {
15761576
zend_throw_error(NULL, "Modification of ArrayObject during sorting is prohibited");
1577-
return;
1577+
RETURN_THROWS();
15781578
}
15791579

15801580
/* storage */
@@ -1773,7 +1773,7 @@ PHP_METHOD(ArrayObject, __unserialize)
17731773
PHP_METHOD(ArrayObject, __debugInfo)
17741774
{
17751775
if (zend_parse_parameters_none() == FAILURE) {
1776-
return;
1776+
RETURN_THROWS();
17771777
}
17781778

17791779
RETURN_ARR(spl_array_get_debug_info(Z_OBJ_P(ZEND_THIS)));

0 commit comments

Comments
 (0)