From: Hartmut Holzgraefe Date: Tue, 31 Oct 2000 11:32:05 +0000 (+0000) Subject: removed some bogus code X-Git-Tag: php-4.0.4RC3~420 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=604876542a6ac37a50c509d2cbf021e23a2af4ce;p=php removed some bogus code --- 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)