Convert PHP nulls into NULL pointers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7467 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6151879eff
commit
b865eddc83
1 changed files with 3 additions and 0 deletions
|
|
@ -170,6 +170,9 @@ SWIG_ZTS_ConvertPtr(zval *z, void **ptr, swig_type_info *ty, int flags TSRMLS_DC
|
|||
} else goto type_error; /* can't find property _cPtr */
|
||||
} else if (z->type==IS_RESOURCE) {
|
||||
return SWIG_ZTS_ConvertResourcePtr(z,ptr,ty, flags TSRMLS_CC);
|
||||
} if (z->type==IS_NULL ) {
|
||||
*ptr = 0;
|
||||
return 0;
|
||||
} else goto type_error;
|
||||
|
||||
type_error:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue