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

Use RETURN_EMPTY_ARRAY() on empty glob returns (#19642)

This commit is contained in:
Niels Dossche
2025-08-30 22:27:31 +02:00
committed by GitHub
parent 243aedd3aa
commit d24eab58e1

View File

@@ -476,8 +476,7 @@ PHP_FUNCTION(glob)
#ifdef PHP_GLOB_NOMATCH
no_results:
#endif
array_init(return_value);
return;
RETURN_EMPTY_ARRAY();
}
array_init(return_value);