From: Stanislav Malyshev Date: Thu, 3 Aug 2000 15:09:27 +0000 (+0000) Subject: If we can't find a protocol in URL wrapper, try it as a filename (fix #5931) X-Git-Tag: PRE_FILE_COMPILE_API_CHANGE~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=688268727e14a81f98aec5e68f47d7ce7cda7ad1;p=php If we can't find a protocol in URL wrapper, try it as a filename (fix #5931) --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 581281978e..c2830436a4 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -1003,6 +1003,7 @@ static FILE *php_fopen_url_wrapper(const char *path, char *mode, int options, in protocopy[n]='\0'; if(FAILURE==zend_hash_find(&fopen_url_wrappers_hash, protocopy, n+1,(void **)&wrapper)) { wrapper=NULL; + protocol=NULL; } efree(protocopy); }