Browse Source

Fixed bug #28355 (glob() does not return error on Linux when it does not

have permission to open the directory).
PHP-5.0
Ilia Alshanetsky 23 years ago
parent
commit
1842676706
  1. 4
      ext/standard/dir.c

4
ext/standard/dir.c

@ -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…
Cancel
Save