mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-30 04:29:01 +01:00
fix gethostbyname_cb test
This commit is contained in:
parent
5a49f3a1fc
commit
c2aa852c2a
2
php_uv.c
2
php_uv.c
@ -3094,6 +3094,8 @@ PHP_FUNCTION(uv_ares_init_options)
|
||||
}
|
||||
|
||||
uv = (php_uv_ares_t*)emalloc(sizeof(php_uv_ares_t));
|
||||
uv->gethostbyname_cb = NULL;
|
||||
|
||||
h = Z_ARRVAL_P(zoptions);
|
||||
if (zend_hash_find(h, "servers", sizeof("servers"), (void **)&data) == SUCCESS) {
|
||||
HashTable *servers = Z_ARRVAL_P(*data);
|
||||
|
Loading…
Reference in New Issue
Block a user