From ad8c9e05e7c92ff216a0ff05240403175a0c5191 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 31 Mar 2009 02:05:19 +0200 Subject: [PATCH] PHP: Add a new typemap for member pointers. We can't just cast member pointers to void*, but we can cast the address of them. Fixes the cpp_basic, member_pointer and namespace_spaces testcases. --- Lib/php/php.swg | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/Lib/php/php.swg b/Lib/php/php.swg index 087525b..0ca9750 100644 --- a/Lib/php/php.swg +++ b/Lib/php/php.swg @@ -209,6 +209,11 @@ SWIG_SetPointerZval(return_value, (void *)$1, $1_descriptor, $owner); %} +%typemap(out) SWIGTYPE (CLASS::*) +%{ + SWIG_SetPointerZval(return_value, (void *)&$1, $1_descriptor, $owner); +%} + %typemap(out) SWIGTYPE *DYNAMIC, SWIGTYPE &DYNAMIC { -- 1.6.2.1