PHP: handle -prefix when checking if a class has been subclassed or not
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11637 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f0fb2f3851
commit
fc52ca3b80
1 changed files with 1 additions and 1 deletions
|
|
@ -1636,7 +1636,7 @@ public:
|
|||
} else {
|
||||
Node *parent = Swig_methodclass(n);
|
||||
String *classname = Swig_class_name(parent);
|
||||
Printf(output, "\t\tif (get_class($this) === '%s') {\n", classname);
|
||||
Printf(output, "\t\tif (get_class($this) === '%s%s') {\n", prefix, classname);
|
||||
Printf(output, "\t\t\t$_this = null;\n");
|
||||
Printf(output, "\t\t} else {\n");
|
||||
Printf(output, "\t\t\t$_this = $this;\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue