[PHP] Fix char * typemaps to work when applied to signed char * and
unsigned char * (uncovered by testcase apply_strings). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10434 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0df0a87981
commit
4bbd68181f
2 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
Version 1.3.36 (in progress)
|
Version 1.3.36 (in progress)
|
||||||
=============================
|
=============================
|
||||||
|
|
||||||
|
05/09/2008: olly
|
||||||
|
[PHP] Fix char * typemaps to work when applied to signed char * and
|
||||||
|
unsigned char * (uncovered by testcase apply_strings).
|
||||||
|
|
||||||
05/09/2008: wsfulton
|
05/09/2008: wsfulton
|
||||||
Fix wrapping of char * member variables when using allprotected mode.
|
Fix wrapping of char * member variables when using allprotected mode.
|
||||||
Bug reported by Warren Wang.
|
Bug reported by Warren Wang.
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,7 @@
|
||||||
if(!$1) {
|
if(!$1) {
|
||||||
ZVAL_NULL(return_value);
|
ZVAL_NULL(return_value);
|
||||||
} else {
|
} else {
|
||||||
ZVAL_STRING(return_value,$1, 1);
|
ZVAL_STRING(return_value, (char *)$1, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue