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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user