[PHP] Fix "in" typemap for char INPUT[ANY]

This commit is contained in:
Olly Betts 2016-09-02 16:38:58 +12:00
commit c51ce4995c
2 changed files with 3 additions and 2 deletions

View file

@ -271,7 +271,7 @@ INT_TYPEMAP(unsigned long long);
%typemap(in) char INPUT[ANY] ( char temp[$1_dim0] )
%{
convert_to_string_ex($input);
strncpy(temp,Z_LVAL_PP($input),$1_dim0);
strncpy(temp,Z_STRVAL_PP($input),$1_dim0);
$1 = temp;
%}
%typemap(in,numinputs=0) char OUTPUT[ANY] ( char temp[$1_dim0] )