From 604876542a6ac37a50c509d2cbf021e23a2af4ce Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Tue, 31 Oct 2000 11:32:05 +0000 Subject: [PATCH] removed some bogus code --- main/fopen_wrappers.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 0ec968d887..c0d6609ce5 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -105,21 +105,17 @@ PHPAPI int php_unregister_url_wrapper(char *protocol) 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) -- 2.50.1