Convert PHP nulls into NULL pointers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7467 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9cd0336266
commit
91a076f516
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 goto type_error; /* can't find property _cPtr */
|
||||||
} else if (z->type==IS_RESOURCE) {
|
} else if (z->type==IS_RESOURCE) {
|
||||||
return SWIG_ZTS_ConvertResourcePtr(z,ptr,ty, flags TSRMLS_CC);
|
return SWIG_ZTS_ConvertResourcePtr(z,ptr,ty, flags TSRMLS_CC);
|
||||||
|
} if (z->type==IS_NULL ) {
|
||||||
|
*ptr = 0;
|
||||||
|
return 0;
|
||||||
} else goto type_error;
|
} else goto type_error;
|
||||||
|
|
||||||
type_error:
|
type_error:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue