Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ZTS compatibility

  • Loading branch information...
commit eeffe56e1fcc848f28a7802b9b4568af8f1ae4ca 1 parent d610a10
@indeyets indeyets authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  php_zmq_pollset.h
  2. +4 −4 zmq_pollset.c
View
2  php_zmq_pollset.h
@@ -51,7 +51,7 @@ void php_zmq_pollset_deinit(php_zmq_pollset *set TSRMLS_DC);
/** {{{ void php_zmq_pollset_clear(php_zmq_pollset *set, zend_bool reinit);
*/
-void php_zmq_pollset_clear(php_zmq_pollset *set, zend_bool reinit);
+void php_zmq_pollset_clear(php_zmq_pollset *set, zend_bool reinit TSRMLS_DC);
/* }}} */
/** {{{ int php_zmq_pollset_add(php_zmq_pollset *set, zval *entry, int events TSRMLS_DC);
View
8 zmq_pollset.c
@@ -53,7 +53,7 @@ void php_zmq_pollset_init(php_zmq_pollset *set)
array_init(set->errors);
}
-void php_zmq_pollset_clear(php_zmq_pollset *set, zend_bool reinit)
+void php_zmq_pollset_clear(php_zmq_pollset *set, zend_bool reinit TSRMLS_DC)
{
if (set->alloc_size > 0) {
efree(set->php_items);
@@ -83,7 +83,7 @@ void php_zmq_pollset_deinit(php_zmq_pollset *set TSRMLS_DC)
zval_ptr_dtor(&(set->php_items[i].entry));
}
- php_zmq_pollset_clear(set, 0);
+ php_zmq_pollset_clear(set, 0 TSRMLS_CC);
zval_dtor(set->errors);
FREE_ZVAL(set->errors);
@@ -99,7 +99,7 @@ void php_zmq_pollset_delete_all(php_zmq_pollset *set TSRMLS_DC)
}
zval_ptr_dtor(&(set->php_items[i].entry));
}
- php_zmq_pollset_clear(set, 1);
+ php_zmq_pollset_clear(set, 1 TSRMLS_CC);
}
#if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION < 3)
@@ -302,7 +302,7 @@ zend_bool php_zmq_pollset_delete_by_key(php_zmq_pollset *set, char key[35], int
num_php_items++;
}
- php_zmq_pollset_clear(set, 0);
+ php_zmq_pollset_clear(set, 0 TSRMLS_CC);
set->php_items = php_items;
set->num_php_items = num_php_items;
set->alloc_size = alloc_size;
Please sign in to comment.
Something went wrong with that request. Please try again.