[PHP] Fix bad PHP code generated when wrapping an enum in a

namespace (uncovered by testcase arrays_scope).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10429 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2008-05-09 12:29:07 +00:00
commit 49fd22d97d
2 changed files with 7 additions and 3 deletions

View file

@ -1947,7 +1947,7 @@ public:
} else {
if (!s_fakeoowrappers)
s_fakeoowrappers = NewStringEmpty();
Printf(s_fakeoowrappers, "\n\tconst %s = %s;\n", name, set_to);
Printf(s_fakeoowrappers, "\n\tconst %s = %s;\n", iname, set_to);
}
}