[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
|
|
@ -5,6 +5,10 @@ See the RELEASENOTES file for a summary of changes in each release.
|
|||
Version 2.0.10 (in progress)
|
||||
============================
|
||||
|
||||
2013-04-09: olly
|
||||
[PHP] Add missing directorin typemap for char* and char[] which
|
||||
fixes director_string testcase failure.
|
||||
|
||||
2013-04-05: wsfulton
|
||||
[Ruby] SF Bug #1292 - Runtime fixes for Proc changes in ruby-1.9 when using STL
|
||||
wrappers that override the default predicate, such as:
|
||||
|
|
|
|||
|
|
@ -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