]> granicus.if.org Git - php/commitdiff
finish file uri support, this stuff was unecessary.
authorShane Caraveo <shane@php.net>
Sun, 19 Oct 2003 21:19:54 +0000 (21:19 +0000)
committerShane Caraveo <shane@php.net>
Sun, 19 Oct 2003 21:19:54 +0000 (21:19 +0000)
main/streams/plain_wrapper.c

index 5286f4fcb256e913d3c007f43b7d329d2b7cbe30..1f060ec6663302df65c96760ab7024c486d7e580 100644 (file)
@@ -882,16 +882,6 @@ static php_stream *php_plain_files_dir_opener(php_stream_wrapper *wrapper, char
 static php_stream *php_plain_files_stream_opener(php_stream_wrapper *wrapper, char *path, char *mode,
                int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC)
 {
-       char *filename = path;
-       if (!strncasecmp(filename, "file:", sizeof("file:")-1)) {
-               filename += 6;
-               while (*(++filename)=='/');
-#ifdef PHP_WIN32
-               if (*(filename + 1) != ':')
-#endif
-                       filename--;
-       }
-
        if ((options & USE_PATH) && PG(include_path) != NULL) {
                return php_stream_fopen_with_path_rel(path, mode, PG(include_path), opened_path, options);
        }