[PHP] Fix sharing of type information between multiple SWIG-wrapped modules (SF#3202463).

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12528 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2011-03-12 01:38:27 +00:00
commit 669bc0e001
2 changed files with 5 additions and 1 deletions

View file

@ -246,7 +246,7 @@ static swig_module_info *SWIG_Php_GetModule() {
TSRMLS_FETCH();
if (zend_get_constant(const_name, sizeof(const_name), pointer TSRMLS_CC)) {
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;
}