]> granicus.if.org Git - php/commitdiff
If we can't find a protocol in URL wrapper, try it as a filename (fix #5931)
authorStanislav Malyshev <stas@php.net>
Thu, 3 Aug 2000 15:09:27 +0000 (15:09 +0000)
committerStanislav Malyshev <stas@php.net>
Thu, 3 Aug 2000 15:09:27 +0000 (15:09 +0000)
main/fopen_wrappers.c

index 581281978eac2ebc4b94d97e7be92fb0c8414f68..c2830436a489a41ffc890fc1b8be9591ce3b9dd9 100644 (file)
@@ -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);
                }