[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

@ -2,8 +2,12 @@ Version 1.3.36 (in progress)
=============================
05/09/2008: olly
SWIG now runs the PHP testsuite using PHP5, not PHP4. PHP4 is
essentially obsolete now, so we care much more about solid PHP5
[PHP] Fix bad PHP code generated when wrapping an enum in a
namespace (uncovered by testcase arrays_scope).
05/09/2008: olly
[PHP] SWIG now runs the PHP testsuite using PHP5, not PHP4. PHP4
is essentially obsolete now, so we care much more about solid PHP5
support.
05/07/2008: wsfulton

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);
}
}