summaryrefslogtreecommitdiff
path: root/Lib/php
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2022-10-10 19:51:08 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2022-10-10 19:51:08 +0100
commit2268d6ee96a380f628169e364711cf38d3db1460 (patch)
treef52c7140ed5c19ebdd2f8997851ebc8ccddf3ca3 /Lib/php
parent0239ba5536105bec1ac4c2386b10a300e9a483cd (diff)
downloadswig-2268d6ee96a380f628169e364711cf38d3db1460.tar.gz
Fix compile error when using directors
Fix when using templates with more than one template parameter and used as an input parameter in a virtual method in a director class (problem affecting most of the scripting languages). Fixes #2160
Diffstat (limited to 'Lib/php')
-rw-r--r--Lib/php/php.swg2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/php/php.swg b/Lib/php/php.swg
index b22166593..e14401236 100644
--- a/Lib/php/php.swg
+++ b/Lib/php/php.swg
@@ -473,7 +473,7 @@
%typemap(directorin) SWIGTYPE
%{
ZVAL_UNDEF($input);
- SWIG_SetPointerZval($input, SWIG_as_voidptr(new $1_ltype(SWIG_STD_MOVE($1))), $&1_descriptor, 1);
+ SWIG_SetPointerZval($input, (new $1_ltype(SWIG_STD_MOVE($1))), $&1_descriptor, 1);
%}
%typemap(out, phptype="void") void ""