]> granicus.if.org Git - php/commitdiff
MFH: no need to check if non-existing include_path complies with open_basedir setting
authorAntony Dovgal <tony2001@php.net>
Mon, 5 Jun 2006 22:39:50 +0000 (22:39 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 5 Jun 2006 22:39:50 +0000 (22:39 +0000)
main/streams/plain_wrapper.c

index 49c11d2c1c45b6d1cd9b17f0d528b9481cd0921e..99fcf7ee104effadd6b3fe15c6ce2cc7c405781f 100644 (file)
@@ -1272,11 +1272,6 @@ not_relative_path:
 #endif
 
        if (!path || (path && !*path)) {
-
-               if (((options & STREAM_DISABLE_OPEN_BASEDIR) == 0) && php_check_open_basedir(path TSRMLS_CC)) {
-                       return NULL;
-               }
-
                if (PG(safe_mode) && (!php_checkuid(filename, mode, CHECKUID_CHECK_MODE_PARAM))) {
                        return NULL;
                }