From 69afd6f1b8896df311949d6f0125492804f51ff6 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Mon, 30 Mar 2009 02:49:13 +0000 Subject: [PATCH] Document the previous change. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11177 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- CHANGES.current | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CHANGES.current b/CHANGES.current index e9dced782..024bbfdc9 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -1,3 +1,15 @@ 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); + %}