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

ext/standard: replace RETVAL_EMPTY_ARRAY() + return with RETURN_EMPTY_ARRAY() (#21464)

This commit is contained in:
Arshid
2026-03-18 11:00:03 +05:30
committed by GitHub
parent e6db18b74c
commit 9b022c4c5c

View File

@@ -6477,8 +6477,7 @@ PHP_FUNCTION(array_filter)
}
if (zend_hash_num_elements(Z_ARRVAL_P(array)) == 0) {
RETVAL_EMPTY_ARRAY();
return;
RETURN_EMPTY_ARRAY();
}
array_init(return_value);