X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_client_curl.c;h=682e1eba2f64178eb8dba2884f115560fbfc1230;hp=fbb950ac276eb4a059a4494746601dea236c3fa1;hb=1cd8f8ce93d77ceb115d80461322681e342fdd2c;hpb=87db9817d428282792c8146d9c2ae9748ebf6f1e diff --git a/php_http_client_curl.c b/php_http_client_curl.c index fbb950a..682e1eb 100644 --- a/php_http_client_curl.c +++ b/php_http_client_curl.c @@ -23,7 +23,9 @@ event_set(e, s, a, cb, d); \ event_base_set(b, e); \ } while(0) -# endif +# else +# include +# endif # ifndef DBG_EVENTS # define DBG_EVENTS 0 # endif @@ -1089,7 +1091,7 @@ static void php_http_curle_options_init(php_http_options_t *registry TSRMLS_DC) /* useragent */ if ((opt = php_http_option_register(registry, ZEND_STRL("useragent"), CURLOPT_USERAGENT, IS_STRING))) { /* don't check strlen, to allow sending no useragent at all */ - ZVAL_STRING(&opt->defval, "PECL::HTTP/" PHP_HTTP_EXT_VERSION " (PHP/" PHP_VERSION ")", 0); + ZVAL_STRING(&opt->defval, "PECL::HTTP/" PHP_PECL_HTTP_VERSION " (PHP/" PHP_VERSION ")", 0); } /* resume */