diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2000-10-31 11:32:05 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2000-10-31 11:32:05 +0000 |
commit | 604876542a6ac37a50c509d2cbf021e23a2af4ce (patch) | |
tree | 00d17082625cbb158c10ef6c2e950a623f098c04 /main | |
parent | c420d653ee4f25ab48d1111ed8a80d82e9f47a3d (diff) | |
download | php-git-604876542a6ac37a50c509d2cbf021e23a2af4ce.tar.gz |
removed some bogus code
Diffstat (limited to 'main')
-rw-r--r-- | main/fopen_wrappers.c | 14 |
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) |