Added some TSRMLS_FETCH() calls to initialize the tsrmls_cc variable.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8881 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0f01a6ed9f
commit
ab05388a85
1 changed files with 3 additions and 0 deletions
|
|
@ -185,6 +185,8 @@ static swig_module_info *SWIG_Php4_GetModule() {
|
|||
|
||||
MAKE_STD_ZVAL(pointer);
|
||||
|
||||
TSRMLS_FETCH();
|
||||
|
||||
if (zend_get_constant(const_name, sizeof(const_name), pointer TSRMLS_CC)) {
|
||||
if (pointer->type == IS_LONG) {
|
||||
ret = (swig_module_info *) pointer->value.lval;
|
||||
|
|
@ -195,5 +197,6 @@ static swig_module_info *SWIG_Php4_GetModule() {
|
|||
}
|
||||
|
||||
static void SWIG_Php4_SetModule(swig_module_info *pointer) {
|
||||
TSRMLS_FETCH();
|
||||
REGISTER_MAIN_LONG_CONSTANT(const_name, (long) pointer, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue