Ruslan Osmanov avatar Ruslan Osmanov committed e654a8b

Fix: build error with zts php setup

Comments (0)

Files changed (5)

 #include "src/priv.h"
 
 /* {{{ _get_pos */
-static int _get_pos(struct evbuffer_ptr *out_ptr, const long pos, struct evbuffer *buf TSRMLS_CC)
+static int _get_pos(struct evbuffer_ptr *out_ptr, const long pos, struct evbuffer *buf TSRMLS_DC)
 {
 	if (pos < 0) {
 		return FAILURE;
 
 /* {{{ _new_http_cb
  * Allocate memory for new callback structure for the next HTTP server's URI */
-static zend_always_inline php_event_http_cb_t *_new_http_cb(zval *zarg, const zend_fcall_info *fci, const zend_fcall_info_cache *fcc TSRMLS_CC)
+static zend_always_inline php_event_http_cb_t *_new_http_cb(zval *zarg, const zend_fcall_info *fci, const zend_fcall_info_cache *fcc TSRMLS_DC)
 {
 	php_event_http_cb_t *cb = emalloc(sizeof(php_event_http_cb_t));
 
   Add: EventBuffer::write, EventUtil::setSocketOption methods and some constants
   Refact: automatically set the upper bound of EventBuffer::search to the buffer length, if it is greater then the length
   Fix: make the code compatible with PHP 5.6.0-dev
+  Fix: build error with zts PHP setup
   ]]></notes>
   <!--}}}-->
   <!--{{{ Contents -->
   Add: EventBuffer::write, EventUtil::setSocketOption methods and some constants
   Refact: automatically set the upper bound of EventBuffer::search to the buffer length, if it is greater then the length
   Fix: make the code compatible with PHP 5.6.0-dev
+  Fix: build error with zts PHP setup
   ]]></notes>
     </release>
     <!--}}}-->
 /* }}} */
 
 /* {{{ _php_event_getsockname */
-int _php_event_getsockname(evutil_socket_t fd, zval **ppzaddress, zval **ppzport TSRMLS_CC)
+int _php_event_getsockname(evutil_socket_t fd, zval **ppzaddress, zval **ppzport TSRMLS_DC)
 {
 	php_sockaddr_storage  sa_storage;
 	struct sockaddr      *sa         = (struct sockaddr *) &sa_storage;
 #define PHP_EVENT_UTIL_H
 
 php_socket_t php_event_zval_to_fd(zval **ppfd TSRMLS_DC);
-int _php_event_getsockname(evutil_socket_t fd, zval **ppzaddress, zval **ppzport TSRMLS_CC);
+int _php_event_getsockname(evutil_socket_t fd, zval **ppzaddress, zval **ppzport TSRMLS_DC);
 
 #define php_event_is_pending(e) \
 	event_pending((e), EV_READ | EV_WRITE | EV_SIGNAL | EV_TIMEOUT, NULL)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.