event_set(e, s, a, cb, d); \
event_base_set(b, e); \
} while(0)
-# endif
+# else
+# include <event_struct.h>
+# endif
# ifndef DBG_EVENTS
# define DBG_EVENTS 0
# endif
/* 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 */