From f38c540936c1f4636a0ab51dfa3e72abf622c46a Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 29 Jul 2009 17:53:17 +0200 Subject: [PATCH] PHP: fix for the allowexcept testcase --- CHANGES.current | 5 +++++ Source/Modules/php.cxx | 4 +++- 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/CHANGES.current b/CHANGES.current index a0bad48..cc41177 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -1,6 +1,11 @@ Version 1.3.40 (in progress) ============================ +2009-07-29: vmiklos + [PHP] Static member variables are now prefixed with the + class name. This allows static member variables with the + same name in different classes. + 2009-07-29: olly [Python] Add missing locks to std::map wrappers. Patch from Paul Hampson in SF#2813836. diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index c14400f..d64c041 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -2114,7 +2114,9 @@ public: } String *class_iname = Swig_name_member(Getattr(current_class, "sym:name"), iname); - create_command(iname, Swig_name_wrapper(class_iname)); + String *lclass_iname = NewStringf("%(lower)s", class_iname); + create_command(lclass_iname, Swig_name_wrapper(class_iname)); + Delete(lclass_iname); Wrapper *f = NewWrapper(); -- 1.6.3.3