Commits

Ruslan Osmanov committed c07871f

Fix: Bug #65847 Issue with old libevent2 where evhttp_connection_get_bufferevent function was not available with libevent version < 2.0.17 (thanks to Remi <remi@php.net>)

  • Participants
  • Parent commits a7cb550

Comments (0)

Files changed (5)

File classes/http_request.c

 }
 /* }}} */
 
-#if LIBEVENT_VERSION_NUMBER >= 0x02001100
+#if LIBEVENT_VERSION_NUMBER >= 0x02000170
 /* {{{ proto EventBufferEvent EventHttpRequest::getBufferEvent(void);
  * Returns EventBufferEvent object on success, otherwise &null. */
 PHP_METHOD(EventHttpRequest, getBufferEvent)
     <email>osmanov@php.net</email>
     <active>yes</active>
   </lead>
-  <date>2013-10-06</date>
+  <date>2013-10-07</date>
   <!--{{{ Current version -->
   <version>
-    <release>1.8.0</release>
+    <release>1.8.1</release>
     <api>1.8.0</api>
   </version>
   <stability>
   </stability>
   <license uri="http://www.php.net/license">PHP</license>
   <notes><![CDATA[
-  Add: EventHttpRequest methods: getBufferEvent, getConnection, closeConnection(thanks to rickysu at Bitbucket)
-  Add: EventHttpConnection::setCloseCallback method
+  Fix: Bug #65847 Issue with old libevent2 where evhttp_connection_get_bufferevent function was not available with libevent version < 2.0.17 (thanks to Remi <remi@php.net>)
   ]]></notes>
   <!--}}}-->
   <!--{{{ Contents -->
   </extsrcrelease>
   <!--{{{ changelog-->
   <changelog>
+    <!--{{{ 1.8.1 -->
+    <release>
+      <version>
+        <release>1.8.1</release>
+        <api>1.8.0</api>
+      </version>
+      <stability>
+        <release>stable</release>
+        <api>stable</api>
+      </stability>
+      <license uri="http://www.php.net/license">PHP</license>
+      <notes><![CDATA[
+  Fix: Bug #65847 Issue with old libevent2 where evhttp_connection_get_bufferevent function was not available with libevent version < 2.0.17 (thanks to Remi <remi@php.net>)
+  ]]></notes>
+    </release>
+    <!--}}}-->
     <!--{{{ 1.8.0 -->
     <release>
       <version>
 #ifndef PHP_EVENT_H
 #define PHP_EVENT_H
 
-#define PHP_EVENT_VERSION "1.8.0"
+#define PHP_EVENT_VERSION "1.8.1"
 
 #define PHP_EVENT_SUN_PREFIX "unix:"
 
 	PHP_ME(EventHttpRequest, clearHeaders,     arginfo_event__void,                     ZEND_ACC_PUBLIC)
 	PHP_ME(EventHttpRequest, removeHeader,     arginfo_event_http_req_remove_header,    ZEND_ACC_PUBLIC)
 	PHP_ME(EventHttpRequest, findHeader,       arginfo_event_http_req_remove_header,    ZEND_ACC_PUBLIC)
-#if LIBEVENT_VERSION_NUMBER >= 0x02001100
+#if LIBEVENT_VERSION_NUMBER >= 0x02000170
 	PHP_ME(EventHttpRequest, getBufferEvent,   arginfo_event__void,                     ZEND_ACC_PUBLIC)
 #endif
 	PHP_ME(EventHttpRequest, getConnection,    arginfo_event__void,                     ZEND_ACC_PUBLIC)
 PHP_METHOD(EventHttpRequest, clearHeaders);
 PHP_METHOD(EventHttpRequest, removeHeader);
 PHP_METHOD(EventHttpRequest, findHeader);
-#if LIBEVENT_VERSION_NUMBER >= 0x02001100
+#if LIBEVENT_VERSION_NUMBER >= 0x02000170
 PHP_METHOD(EventHttpRequest, getBufferEvent);
 #endif
 PHP_METHOD(EventHttpRequest, getConnection);