X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fphp_http_client.c;h=7f8363ee4a69453f25d54a652813bc0f47fd619f;hb=e096f45ff30a46d6a8e96da7bc6334d2ac5ab7c2;hp=d0e6e80107c28dc65de29971d3d348a2689fba86;hpb=c55db20a130d729ca8747346c5e5ab9fb52fd89d;p=m6w6%2Fext-http diff --git a/src/php_http_client.c b/src/php_http_client.c index d0e6e80..7f8363e 100644 --- a/src/php_http_client.c +++ b/src/php_http_client.c @@ -376,7 +376,7 @@ static HashTable *php_http_client_object_get_gc(zval *object, zval **table, int *n = 0; *table = obj->gc = erealloc(obj->gc, sizeof(zval) * count); -#if PHP_HTTP_HAVE_CURL +#if PHP_HTTP_HAVE_LIBCURL if (obj->client->ops == php_http_client_curl_get_ops()) { php_http_client_curl_t *curl = obj->client->ctx; @@ -1270,7 +1270,8 @@ static PHP_METHOD(HttpClient, getAvailableConfiguration) } ZEND_BEGIN_ARG_INFO_EX(ai_HttpClient_setDebug, 0, 0, 1) - ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 1) + /* using IS_CALLABLE type hint would create a forwards compatibility break */ + ZEND_ARG_INFO(0, callback) ZEND_END_ARG_INFO(); static PHP_METHOD(HttpClient, setDebug) {