Commits

Ruslan Osmanov committed 9f754cc

Fix: EventHttpRequest::__construct's arginfo
Fix: without openssl enabled MSHUTDOWN produced error: ‘event_ssl_context_properties’ undeclared

Comments (0)

Files changed (3)

classes/http_request.c

 }
 /* }}} */
 
-/* {{{ proto int EventHttpRequest::getHost(void);
+/* {{{ proto string EventHttpRequest::getHost(void);
  * Returns the request host. XXX make a property? */
 PHP_METHOD(EventHttpRequest, getHost)
 {
 	zend_hash_destroy(&event_bevent_properties);
 	zend_hash_destroy(&event_buffer_properties);
 	zend_hash_destroy(&event_buffer_pos_properties);
+#ifdef HAVE_EVENT_OPENSSL_LIB
 	zend_hash_destroy(&event_ssl_context_properties);
+#endif
 
 	zend_hash_destroy(&classes);
 
 	ZEND_ARG_INFO(0, alias)
 ZEND_END_ARG_INFO();
 
+ZEND_BEGIN_ARG_INFO_EX(arginfo_event_http_req__construct, 0, 0, 1)
+	ZEND_ARG_INFO(0, callback)
+	ZEND_ARG_INFO(0, data)
+ZEND_END_ARG_INFO();
 
 ZEND_BEGIN_ARG_INFO_EX(arginfo_event_http_req_send_error, 0, 0, 2)
 	ZEND_ARG_INFO(0, error)
 };
 
 const zend_function_entry php_event_http_req_ce_functions[] = {
-	PHP_ME(EventHttpRequest, __construct, arginfo_event__void, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
+	PHP_ME(EventHttpRequest, __construct, arginfo_event_http_req__construct, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
 
 	PHP_ME(EventHttpRequest, free,             arginfo_event__void,                     ZEND_ACC_PUBLIC)
 	PHP_ME(EventHttpRequest, getCommand,       arginfo_event__void,                     ZEND_ACC_PUBLIC)