Fix check::classname() to compare case-insensitively and not try to interpolate objects into strings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10641 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fbfda8f7d2
commit
a172b1d4b0
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ class check {
|
|||
}
|
||||
|
||||
function classname($string,$object) {
|
||||
if ($string!=($classname=get_class($object))) return check::fail("Object: $object is of class %s not class %s",$classname,$string);
|
||||
if (strtolower($string)!=strtolower($classname=get_class($object))) return check::fail("Object: \$object is of class %s not class %s",$classname,$string);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue