Skip to content

Commit 76e9d5f

Browse files
committed
Fix ZTS build
1 parent ca3e599 commit 76e9d5f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

ext/module_class.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ PHP_METHOD(PHPGo__Module, __fun)
9292
switch (a->kind) {
9393
case PHPGO_KIND_BOOL: {
9494
zend_bool b;
95-
if (zend_parse_parameter(0, i+1, args[i], "b", &b) != SUCCESS) {
95+
if (zend_parse_parameter(0, i+1 TSRMLS_CC, args[i], "b", &b) != SUCCESS) {
9696
return;
9797
}
9898
ins[i].b = b;
@@ -107,7 +107,7 @@ PHP_METHOD(PHPGo__Module, __fun)
107107
case PHPGO_KIND_UINT32:
108108
case PHPGO_KIND_UINT64: {
109109
long l;
110-
if (zend_parse_parameter(0, i+1, args[i], "l", &l) != SUCCESS) {
110+
if (zend_parse_parameter(0, i+1 TSRMLS_CC, args[i], "l", &l) != SUCCESS) {
111111
return;
112112
}
113113
ins[i].l = l;
@@ -116,7 +116,7 @@ PHP_METHOD(PHPGo__Module, __fun)
116116
case PHPGO_KIND_FLOAT32:
117117
case PHPGO_KIND_FLOAT64: {
118118
double d;
119-
if (zend_parse_parameter(0, i+1, args[i], "d", &d) != SUCCESS) {
119+
if (zend_parse_parameter(0, i+1 TSRMLS_CC, args[i], "d", &d) != SUCCESS) {
120120
return;
121121
}
122122
ins[i].d = d;
@@ -125,7 +125,7 @@ PHP_METHOD(PHPGo__Module, __fun)
125125
case PHPGO_KIND_STRING: {
126126
char *s;
127127
int l;
128-
if (zend_parse_parameter(0, i+1, args[i], "s", &s, &l) != SUCCESS) {
128+
if (zend_parse_parameter(0, i+1 TSRMLS_CC, args[i], "s", &s, &l) != SUCCESS) {
129129
return;
130130
}
131131
ins[i].s.s = s;
@@ -212,7 +212,7 @@ static void phpgo_add_method(zend_function_entry *fe, php_export *export)
212212
fe->flags = ZEND_ACC_PUBLIC;
213213
}
214214

215-
void phpgo_module_new_instance(zval *ret, phpgo_module *module)
215+
void phpgo_module_new_instance(zval *ret, phpgo_module *module TSRMLS_DC)
216216
{
217217
zend_class_entry tmpce;
218218
zend_class_entry *ce;

ext/module_class.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
+----------------------------------------------------------------------+
1717
*/
1818

19-
void phpgo_module_new_instance(zval *ret, phpgo_module *module);
19+
void phpgo_module_new_instance(zval *ret, phpgo_module *module TSRMLS_DC);
2020
void phpgo_module_class_init();
2121

ext/phpgo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ PHP_FUNCTION(phpgo_load)
138138
RETURN_FALSE;
139139
}
140140

141-
phpgo_module_new_instance(return_value, module);
141+
phpgo_module_new_instance(return_value, module TSRMLS_CC);
142142
}
143143
/* }}} */
144144

0 commit comments

Comments
 (0)