[PHP] Fix assertion failure when handling %typemap(in,numinputs=0)
(testcase ignore_parameter). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10565 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
376adf0e64
commit
caf2c6904b
2 changed files with 8 additions and 0 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
Version 1.3.36 (in progress)
|
Version 1.3.36 (in progress)
|
||||||
=============================
|
=============================
|
||||||
|
|
||||||
|
06/24/2008: olly
|
||||||
|
[PHP] Fix assertion failure when handling %typemap(in,numinputs=0)
|
||||||
|
(testcase ignore_parameter).
|
||||||
|
|
||||||
06/24/2008: olly
|
06/24/2008: olly
|
||||||
[PHP] Fix segfault when wrapping a non-class function marked with
|
[PHP] Fix segfault when wrapping a non-class function marked with
|
||||||
%newobject (testcase char_strings).
|
%newobject (testcase char_strings).
|
||||||
|
|
|
||||||
|
|
@ -1439,6 +1439,10 @@ public:
|
||||||
if (wrapperType == memberfn)
|
if (wrapperType == memberfn)
|
||||||
p = nextSibling(p);
|
p = nextSibling(p);
|
||||||
while (p) {
|
while (p) {
|
||||||
|
if (GetInt(p, "tmap:in:numinputs") == 0) {
|
||||||
|
p = nextSibling(p);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
assert(0 <= argno && argno < max_num_of_arguments);
|
assert(0 <= argno && argno < max_num_of_arguments);
|
||||||
String *&pname = arg_names[argno];
|
String *&pname = arg_names[argno];
|
||||||
const char *pname_cstr = GetChar(p, "name");
|
const char *pname_cstr = GetChar(p, "name");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue