Document the previous change.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11177 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
64843143f1
commit
69afd6f1b8
1 changed files with 12 additions and 0 deletions
|
|
@ -1,3 +1,15 @@
|
||||||
Version 1.3.40 (in progress)
|
Version 1.3.40 (in progress)
|
||||||
============================
|
============================
|
||||||
|
|
||||||
|
2009-03-30: olly
|
||||||
|
[PHP] The default out typemap for char[ANY] now returns the string up to a
|
||||||
|
zero byte, or the end of the array if there is no zero byte. This
|
||||||
|
is the same as Python does, and seems more generally useful than
|
||||||
|
the previous behaviour of returning the whole contents of the array
|
||||||
|
including any zero bytes. If you want the old behaviour, you can provide
|
||||||
|
your own typemap to do this:
|
||||||
|
|
||||||
|
%typemap(out) char [ANY]
|
||||||
|
%{
|
||||||
|
RETVAL_STRINGL($1, $1_dim0, 1);
|
||||||
|
%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue