http://svn.php.net/viewvc?view=revision&revision=288943 Index: ext/posix/posix.c =================================================================== --- ext/posix/posix.c (revision 286880) +++ ext/posix/posix.c (revision 288943) @@ -840,7 +840,8 @@ RETURN_FALSE; } - if (PG(safe_mode) && (!php_checkuid(path, NULL, CHECKUID_ALLOW_ONLY_DIR))) { + if (php_check_open_basedir_ex(path, 0 TSRMLS_CC) || + (PG(safe_mode) && (!php_checkuid(path, NULL, CHECKUID_ALLOW_ONLY_DIR)))) { RETURN_FALSE; }