[PHP] Fix warning and rename of reserved class name to be case insensitive.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11763 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2bd190dbf1
commit
2c74fbf9e4
3 changed files with 110 additions and 101 deletions
|
|
@ -2,19 +2,25 @@
|
|||
|
||||
#ifdef SWIGPHP
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) Empty();
|
||||
// FIXME: this doesn't work for me:
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) stdClass;
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) directory;
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) Hello::empty();
|
||||
#endif
|
||||
|
||||
%inline %{
|
||||
|
||||
int Exception() { return 13; }
|
||||
|
||||
void Empty() {}
|
||||
|
||||
class stdClass
|
||||
{
|
||||
};
|
||||
|
||||
class directory
|
||||
{
|
||||
};
|
||||
|
||||
struct Hello
|
||||
{
|
||||
void empty() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue