|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patch open_basedir_error_fix for Safe Mode/open_basedir Bug #47358Patch version 2011-10-09 17:08 UTC Return to Bug #47358 | Download this patchThis patch renders other patches obsolete Obsolete patches: Patch Revisions:Developer: pajoye@php.net
Index: ext/standard/dir.c
===================================================================
--- ext/standard/dir.c (revision 317752)
+++ ext/standard/dir.c (working copy)
@@ -490,11 +490,10 @@
/* now catch the FreeBSD style of "no matches" */
if (!globbuf.gl_pathc || !globbuf.gl_pathv) {
+
no_results:
if (PG(open_basedir) && *PG(open_basedir)) {
- struct stat s;
-
- if (0 != VCWD_STAT(pattern, &s) || S_IFDIR != (s.st_mode & S_IFMT)) {
+ if (php_check_open_basedir_ex(pattern, 0 TSRMLS_CC)) {
RETURN_FALSE;
}
}
|
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 12:00:01 2025 UTC |