Fix PHP compilation error in ZTS mode (64 bit windows) due to TSRMLS_FETCH() expansion
This commit is contained in:
parent
9033b2de47
commit
f068be89e5
2 changed files with 5 additions and 2 deletions
|
|
@ -255,11 +255,10 @@ static char const_name[] = "swig_runtime_data_type_pointer";
|
|||
static swig_module_info *SWIG_Php_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
|
||||
zval *pointer;
|
||||
swig_module_info *ret = 0;
|
||||
TSRMLS_FETCH();
|
||||
|
||||
MAKE_STD_ZVAL(pointer);
|
||||
|
||||
TSRMLS_FETCH();
|
||||
|
||||
if (zend_get_constant(const_name, sizeof(const_name) - 1, pointer TSRMLS_CC)) {
|
||||
if (pointer->type == IS_LONG) {
|
||||
ret = (swig_module_info *) pointer->value.lval;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue