From 5d8d045c1f5218fdb5d077c81147259c511f862e Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 5 Apr 2008 20:53:23 +0000 Subject: [PATCH] fix #1934695 Getattr(n, wrap:name) assertion git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10351 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/php4.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Modules/php4.cxx b/Source/Modules/php4.cxx index 1fc948851..87ab0b3ee 100644 --- a/Source/Modules/php4.cxx +++ b/Source/Modules/php4.cxx @@ -2712,6 +2712,8 @@ public: Printf(df->code, " arg1 = (%s)SWIG_ZTS_ConvertResourceData(ptr,type_name,SWIGTYPE%s TSRMLS_CC);\n", SwigType_lstr(pt, 0), SwigType_manglestr(pt)); Printf(df->code, " if (! arg1) zend_error(E_ERROR, \"%s resource already free'd\");\n", Char(name)); + Setattr(n, "wrap:name", destructorname); + emit_action(n, df); Printf(df->code, "}\n");