[PHP] Fix directors to correctly call a method with has a
different name in PHP to C++ (we were always using the C++ name in this case). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12110 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c7a6e3dad4
commit
f67c0fa12c
2 changed files with 6 additions and 1 deletions
|
|
@ -5,6 +5,11 @@ See the RELEASENOTES file for a summary of changes in each release.
|
||||||
Version 2.0.1 (in progress)
|
Version 2.0.1 (in progress)
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
|
2010-06-10: olly
|
||||||
|
[PHP] Fix directors to correctly call a method with has a
|
||||||
|
different name in PHP to C++ (we were always using the C++ name
|
||||||
|
in this case).
|
||||||
|
|
||||||
2010-06-03: wsfulton
|
2010-06-03: wsfulton
|
||||||
Fix uncompileable code when %rename results in two enum items
|
Fix uncompileable code when %rename results in two enum items
|
||||||
with the same name. Reported by Vadim Zeitlin.
|
with the same name. Reported by Vadim Zeitlin.
|
||||||
|
|
|
||||||
|
|
@ -2565,7 +2565,7 @@ done:
|
||||||
}
|
}
|
||||||
Append(w->code, "zval *result, funcname;\n");
|
Append(w->code, "zval *result, funcname;\n");
|
||||||
Append(w->code, "MAKE_STD_ZVAL(result);\n");
|
Append(w->code, "MAKE_STD_ZVAL(result);\n");
|
||||||
Printf(w->code, "ZVAL_STRING(&funcname, (char *)\"%s\", 0);\n", name);
|
Printf(w->code, "ZVAL_STRING(&funcname, (char *)\"%s\", 0);\n", GetChar(n, "sym:name"));
|
||||||
Append(w->code, "if (!swig_self) {\n");
|
Append(w->code, "if (!swig_self) {\n");
|
||||||
Append(w->code, " SWIG_PHP_Error(E_ERROR, \"this pointer is NULL\");");
|
Append(w->code, " SWIG_PHP_Error(E_ERROR, \"this pointer is NULL\");");
|
||||||
Append(w->code, "}\n\n");
|
Append(w->code, "}\n\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue