cvs: php4 /main fopen-wrappers.c
| From: | Stanislav Malyshev | Date: | Thu, 03 Aug 2000 15:09:27 +0000 |
| Subject: | cvs: php4 /main fopen-wrappers.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1017@lists.php.net to get a copy of this message | ||
stas Thu Aug 3 08:09:27 2000 EDT
Modified files:
/php4/main fopen-wrappers.c
Log:
If we can't find a protocol in URL wrapper, try it as a filename (fix #5931)
Index: php4/main/fopen-wrappers.c
diff -u php4/main/fopen-wrappers.c:1.72 php4/main/fopen-wrappers.c:1.73
--- php4/main/fopen-wrappers.c:1.72 Sat Jul 29 15:32:21 2000
+++ php4/main/fopen-wrappers.c Thu Aug 3 08:09:27 2000
@@ -16,7 +16,7 @@
| Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: fopen-wrappers.c,v 1.72 2000/07/29 22:32:21 rasmus Exp $ */
+/* $Id: fopen-wrappers.c,v 1.73 2000/08/03 15:09:27 stas Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -1003,6 +1003,7 @@
protocopy[n]='\0';
if(FAILURE==zend_hash_find(&fopen_url_wrappers_hash, protocopy, n+1,(void **)&wrapper))
{
wrapper=NULL;
+ protocol=NULL;
}
efree(protocopy);
}