mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
kill warning and make this build again.
This commit is contained in:
parent
bad630553b
commit
0ccc2fd9ef
@ -90,7 +90,7 @@ static HashTable fopen_url_wrappers_hash;
|
||||
PHPAPI int php_register_url_wrapper(const char *protocol, php_fopen_url_wrapper_t wrapper TSRMLS_DC)
|
||||
{
|
||||
if(PG(allow_url_fopen)) {
|
||||
return zend_hash_add(&fopen_url_wrappers_hash, protocol, strlen(protocol), &wrapper, sizeof(wrapper), NULL);
|
||||
return zend_hash_add(&fopen_url_wrappers_hash, (char *) protocol, strlen(protocol), &wrapper, sizeof(wrapper), NULL);
|
||||
} else {
|
||||
return FAILURE;
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ PHPAPI char *php_strip_url_passwd(char *path);
|
||||
|
||||
int php_init_fopen_wrappers(TSRMLS_D);
|
||||
int php_shutdown_fopen_wrappers(TSRMLS_D);
|
||||
PHPAPI int php_register_url_wrapper(char *protocol, php_fopen_url_wrapper_t wrapper TSRMLS_DC);
|
||||
PHPAPI int php_register_url_wrapper(const char *protocol, php_fopen_url_wrapper_t wrapper TSRMLS_DC);
|
||||
PHPAPI int php_unregister_url_wrapper(char *protocol TSRMLS_DC);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user