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:
Kevin Ruland 2005-09-20 14:44:11 +00:00
commit b865eddc83

View file

@ -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: