Need to cast away const-ness for the PHP API.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12724 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
29190559f8
commit
a09225e70b
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ SWIG_ZTS_SetPointerZval(zval *z, void *ptr, swig_type_info *type, int newobject
|
|||
result = zend_lookup_class(classname, SWIG_PREFIX_LEN + type_name_len, &ce TSRMLS_CC);
|
||||
efree(classname);
|
||||
} else {
|
||||
result = zend_lookup_class(type_name, type_name_len, &ce TSRMLS_CC);
|
||||
result = zend_lookup_class((char *)type_name, type_name_len, &ce TSRMLS_CC);
|
||||
}
|
||||
if (result != SUCCESS) {
|
||||
/* class does not exist */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue