diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2009-08-18 16:23:23 +0000 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2009-08-18 16:23:23 +0000 |
commit | fc52ca3b80434eee001745e93c07cbf0fb7095cf (patch) | |
tree | e3545fbd59fc742aa3d0594773b23afef449b204 | |
parent | f0fb2f38518674b973bb97552b89ec84e94c003e (diff) | |
download | swig-fc52ca3b80434eee001745e93c07cbf0fb7095cf.tar.gz |
PHP: handle -prefix when checking if a class has been subclassed or notv1.3.40rel-1.3.40
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11637 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r-- | Source/Modules/php.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index bae922e90..eee4d1fcc 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -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"); |