Fix %$ismember %rename predicate for members added via %extend
Bug reported was incorrect renaming of PHP built-in functions, such as next. See PHPFN in phpkw.swg. Add some tests for the %rename predicates.
This commit is contained in:
parent
fcf8180751
commit
9cbd742b66
5 changed files with 95 additions and 2 deletions
|
|
@ -356,10 +356,13 @@ static void add_symbols(Node *n) {
|
|||
}
|
||||
Delete(prefix);
|
||||
}
|
||||
|
||||
Setattr(n,"ismember","1");
|
||||
}
|
||||
}
|
||||
|
||||
if (!isfriend && (inclass || extendmode)) {
|
||||
Setattr(n,"ismember","1");
|
||||
}
|
||||
|
||||
if (!isfriend && inclass) {
|
||||
if ((cplus_mode != CPLUS_PUBLIC)) {
|
||||
only_csymbol = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue