From ee27510234a996c1d38d42a46f7d658b56b9702b Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Sun, 14 May 2006 18:54:40 +0000 Subject: [PATCH] Store the Node for the current class rather than just its name (which makes little difference now, but paves the way for future changes...) [Patch recommit] git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9111 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/php4.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SWIG/Source/Modules/php4.cxx b/SWIG/Source/Modules/php4.cxx index 4f7532ed2..61024557e 100644 --- a/SWIG/Source/Modules/php4.cxx +++ b/SWIG/Source/Modules/php4.cxx @@ -72,7 +72,7 @@ static String *pragma_code; static String *pragma_phpinfo; /* Variables for using PHP classes */ -static String *class_name = 0; +static Node *current_class = 0; static Hash *shadow_get_vars; static Hash *shadow_set_vars; @@ -1394,7 +1394,7 @@ public: virtual int classHandler(Node *n) { constructors=0; //SwigType *t = Getattr(n, "classtype"); - class_name = Getattr(n, "sym:name"); + current_class = n; // String *use_class_name=SwigType_manglestr(SwigType_ltype(t)); if(shadow) { @@ -1764,7 +1764,7 @@ public: } } - String *class_iname = Swig_name_member(class_name,iname); + String *class_iname = Swig_name_member(Getattr(current_class, "sym:name"), iname); create_command( iname, Swig_name_wrapper(class_iname) ); Wrapper *f = NewWrapper();