Skip to content

Commit 0ccc2fd

Browse files
author
foobar
committed
kill warning and make this build again.
1 parent bad6305 commit 0ccc2fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main/fopen_wrappers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static HashTable fopen_url_wrappers_hash;
9090
PHPAPI int php_register_url_wrapper(const char *protocol, php_fopen_url_wrapper_t wrapper TSRMLS_DC)
9191
{
9292
if(PG(allow_url_fopen)) {
93-
return zend_hash_add(&fopen_url_wrappers_hash, protocol, strlen(protocol), &wrapper, sizeof(wrapper), NULL);
93+
return zend_hash_add(&fopen_url_wrappers_hash, (char *) protocol, strlen(protocol), &wrapper, sizeof(wrapper), NULL);
9494
} else {
9595
return FAILURE;
9696
}

main/fopen_wrappers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ PHPAPI char *php_strip_url_passwd(char *path);
8282

8383
int php_init_fopen_wrappers(TSRMLS_D);
8484
int php_shutdown_fopen_wrappers(TSRMLS_D);
85-
PHPAPI int php_register_url_wrapper(char *protocol, php_fopen_url_wrapper_t wrapper TSRMLS_DC);
85+
PHPAPI int php_register_url_wrapper(const char *protocol, php_fopen_url_wrapper_t wrapper TSRMLS_DC);
8686
PHPAPI int php_unregister_url_wrapper(char *protocol TSRMLS_DC);
8787

8888
#endif

0 commit comments

Comments
 (0)