From 688268727e14a81f98aec5e68f47d7ce7cda7ad1 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Thu, 3 Aug 2000 15:09:27 +0000 Subject: [PATCH] If we can't find a protocol in URL wrapper, try it as a filename (fix #5931) --- main/fopen_wrappers.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.50.1