fix gethostbyname_cb test

This commit is contained in:
Shuhei Tanuma 2012-07-01 02:13:12 +09:00
parent 5a49f3a1fc
commit c2aa852c2a

View File

@ -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);