cvs: php4 /main fopen-wrappers.c
| From: | Hartmut Holzgraefe | Date: | Tue, 31 Oct 2000 11:32:06 +0000 |
| Subject: | cvs: php4 /main fopen-wrappers.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2369@lists.php.net to get a copy of this message | ||
hholzgra Tue Oct 31 03:32:06 2000 EDT
Modified files:
/php4/main fopen-wrappers.c
Log:
removed some bogus code
Index: php4/main/fopen-wrappers.c
diff -u php4/main/fopen-wrappers.c:1.102 php4/main/fopen-wrappers.c:1.103
--- php4/main/fopen-wrappers.c:1.102 Fri Oct 27 18:31:56 2000
+++ php4/main/fopen-wrappers.c Tue Oct 31 03:32:05 2000
@@ -16,7 +16,7 @@
| Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: fopen-wrappers.c,v 1.102 2000/10/28 01:31:56 zeev Exp $ */
+/* $Id: fopen-wrappers.c,v 1.103 2000/10/31 11:32:05 hholzgra Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -105,21 +105,17 @@
return zend_hash_del(&fopen_url_wrappers_hash, protocol, strlen(protocol));
} else {
return SUCCESS;
- }
+ }
}
int php_init_fopen_wrappers(void)
{
- int status = SUCCESS;
PLS_FETCH();
-
- if(PG(allow_url_fopen)) {
- if (zend_hash_init(&fopen_url_wrappers_hash, 0, NULL, NULL, 1)==FAILURE) {
- return FAILURE;
- }
- }
- return status;
+ if(PG(allow_url_fopen))
+ return zend_hash_init(&fopen_url_wrappers_hash, 0, NULL, NULL, 1);
+
+ return SUCCESS;
}
int php_shutdown_fopen_wrappers(void)