From: Shane Caraveo Date: Sun, 19 Oct 2003 21:19:54 +0000 (+0000) Subject: finish file uri support, this stuff was unecessary. X-Git-Tag: RELEASE_1_3b3~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a6ff32e2b8ca21622f335802b94941d9f6453de;p=php finish file uri support, this stuff was unecessary. --- diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 5286f4fcb2..1f060ec666 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -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); }