]> granicus.if.org Git - php/commitdiff
removed some bogus code
authorHartmut Holzgraefe <hholzgra@php.net>
Tue, 31 Oct 2000 11:32:05 +0000 (11:32 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Tue, 31 Oct 2000 11:32:05 +0000 (11:32 +0000)
main/fopen_wrappers.c

index 0ec968d887ee61e4c7938a55face5b83e6918c3a..c0d6609ce505238fe13e9cd7257f99979bd81f89 100644 (file)
@@ -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)