[PHP] Add missing directorin typemap for char* and char[] which
fixes director_string testcase failure.
This commit is contained in:
parent
1fce0bd2b4
commit
939fa86627
2 changed files with 13 additions and 0 deletions
|
|
@ -269,6 +269,15 @@
|
|||
ZVAL_LONG($input,$1);
|
||||
}
|
||||
|
||||
%typemap(directorin) char *, char []
|
||||
{
|
||||
if(!$1) {
|
||||
ZVAL_NULL($input);
|
||||
} else {
|
||||
ZVAL_STRING($input, (char *)$1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
%typemap(out) bool
|
||||
{
|
||||
ZVAL_BOOL(return_value,($1)?1:0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue