[php] Fix reserved class names TRUE, FALSE, NULL

PHPCN(x) does a string compare of x with the lower-cased class name,
so x needs to be in lowercase or else the entry has no effect.  The
entries for TRUE, FALSE and NULL weren't working as a result.
This commit is contained in:
Olly Betts 2021-05-12 16:39:57 +12:00
commit b671a37e89
2 changed files with 19 additions and 4 deletions

View file

@ -5,6 +5,9 @@
%warnfilter(SWIGWARN_PARSE_KEYWORD) stdClass;
%warnfilter(SWIGWARN_PARSE_KEYWORD) directory;
%warnfilter(SWIGWARN_PARSE_KEYWORD) Hello::empty();
%warnfilter(SWIGWARN_PARSE_KEYWORD) null;
%warnfilter(SWIGWARN_PARSE_KEYWORD) True;
%warnfilter(SWIGWARN_PARSE_KEYWORD) FALSE;
#endif
%ignore prev::operator++;
@ -36,4 +39,15 @@
prev operator++(int) { return *this; }
};
class null
{
};
class True
{
};
class FALSE
{
};
%}