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.netIndex: 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-2024 The PHP Group All rights reserved. |
Last updated: Thu Nov 21 13:01:29 2024 UTC |