diff options
-rw-r--r-- | Lib/php/php.swg | 9 | ||||
-rw-r--r-- | Source/Modules/php.cxx | 1 |
2 files changed, 2 insertions, 8 deletions
diff --git a/Lib/php/php.swg b/Lib/php/php.swg index 496e1029e..6da09e7a0 100644 --- a/Lib/php/php.swg +++ b/Lib/php/php.swg @@ -93,13 +93,8 @@ %typemap(directorout) SWIGTYPE ($&1_ltype tmp) %{ - if ($needNewFlow) { - 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"); - } + 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"); } $result = *tmp; %} diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index ede9471f6..39578578b 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -2103,7 +2103,6 @@ public: char temp[24]; sprintf(temp, "%d", idx); Replaceall(tm, "$argnum", temp); - Replaceall(tm, "$needNewFlow", Getattr(n, "feature:new") ? "1" : "0"); /* TODO check this */ if (Getattr(n, "wrap:disown")) { |