summaryrefslogtreecommitdiff
path: root/main/fopen_wrappers.c
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2000-10-31 11:32:05 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2000-10-31 11:32:05 +0000
commit604876542a6ac37a50c509d2cbf021e23a2af4ce (patch)
tree00d17082625cbb158c10ef6c2e950a623f098c04 /main/fopen_wrappers.c
parentc420d653ee4f25ab48d1111ed8a80d82e9f47a3d (diff)
downloadphp-git-604876542a6ac37a50c509d2cbf021e23a2af4ce.tar.gz
removed some bogus code
Diffstat (limited to 'main/fopen_wrappers.c')
-rw-r--r--main/fopen_wrappers.c14
1 files 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)