summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2021-04-21 17:44:24 +1200
committerOlly Betts <olly@survex.com>2021-04-21 18:16:08 +1200
commit49d5909b083e321eafb513af15798281e21a8d83 (patch)
tree2db796195cb299d511ac8808a857ee0ce3a7b01f
parent33feca7527758466af7b6ffc503cf46fc18d0ee2 (diff)
downloadswig-49d5909b083e321eafb513af15798281e21a8d83.tar.gz
Use $1 instead of result in out typemaps
-rw-r--r--Lib/php/php.swg4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/php/php.swg b/Lib/php/php.swg
index 8dd613620..a4d6e56fa 100644
--- a/Lib/php/php.swg
+++ b/Lib/php/php.swg
@@ -96,8 +96,8 @@
/* If exit was via exception, PHP NULL is returned so skip the conversion. */
if (!EG(exception)) {
if ($needNewFlow) {
- tmp = ($&1_ltype) &SWIG_Z_FETCH_OBJ_P(result)->ptr;
- SWIG_Z_FETCH_OBJ_P(result)->newobject = 0;
+ tmp = ($&1_ltype) &SWIG_Z_FETCH_OBJ_P($1)->ptr;
+ SWIG_Z_FETCH_OBJ_P($1)->newobject = 0;
} else {
if (SWIG_ConvertPtr($input, (void **) &tmp, $&1_descriptor, 0) < 0 || tmp == NULL) {
SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $&1_descriptor");