Bug #943783 with patch fixes php char * out typemap NULL values.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6083 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3af80ea481
commit
26b5e7000c
1 changed files with 5 additions and 1 deletions
|
|
@ -118,7 +118,11 @@ strarray_inout(char [ANY])
|
|||
%}
|
||||
|
||||
%typemap(out) char * %{
|
||||
ZVAL_STRING(return_value,$1, 1);
|
||||
if(!$1) {
|
||||
ZVAL_NULL(return_value);
|
||||
} else {
|
||||
ZVAL_STRING(return_value,$1, 1);
|
||||
}
|
||||
%}
|
||||
|
||||
%typemap(out) SWIGTYPE *, SWIGTYPE [], SWIGTYPE & %{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue