mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
Fixed bug #28355 (glob() does not return error on Linux when it does not
have permission to open the directory).
This commit is contained in:
parent
9540037bb7
commit
1842676706
@ -400,8 +400,12 @@ PHP_FUNCTION(glob)
|
||||
* doesn't. This ensure that if no match is found, an empty array
|
||||
* is always returned so it can be used without worrying in e.g.
|
||||
* foreach() */
|
||||
#if __linux__
|
||||
RETURN_FALSE;
|
||||
#else
|
||||
array_init(return_value);
|
||||
return;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
RETURN_FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user