mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
removed some bogus code
This commit is contained in:
parent
c420d653ee
commit
604876542a
1 changed files with 5 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue