]> granicus.if.org Git - php/commitdiff
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:10 +0000 (22:39 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 5 Jun 2006 22:39:10 +0000 (22:39 +0000)
the only result we can get is segfault

main/streams/plain_wrapper.c

index bacfb2fc2c8136446b3f2225ea45ff1715697c0a..2ae79d68a5b728a5b8f4a0bc62fad64ca713e496 100644 (file)
@@ -1227,11 +1227,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;
-               }
-
                return php_stream_fopen_rel(filename, mode, opened_path, options);
        }