[PHP] Add missing directorin typemap for char* and char[] which

fixes director_string testcase failure.
This commit is contained in:
Olly Betts 2013-04-09 14:35:14 +12:00
commit 939fa86627
2 changed files with 13 additions and 0 deletions

View file

@ -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);