projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge pull request #57 from m6w6/lc-utf8
[m6w6/ext-http]
/
src
/
php_http_client.c
diff --git
a/src/php_http_client.c
b/src/php_http_client.c
index d0e6e80107c28dc65de29971d3d348a2689fba86..7f8363ee4a69453f25d54a652813bc0f47fd619f 100644
(file)
--- 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);
*n = 0;
*table = obj->gc = erealloc(obj->gc, sizeof(zval) * count);
-#if PHP_HTTP_HAVE_CURL
+#if PHP_HTTP_HAVE_
LIB
CURL
if (obj->client->ops == php_http_client_curl_get_ops()) {
php_http_client_curl_t *curl = obj->client->ctx;
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_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)
{
ZEND_END_ARG_INFO();
static PHP_METHOD(HttpClient, setDebug)
{