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:
Olly Betts 2008-07-03 09:12:16 +00:00
commit a172b1d4b0

View file

@ -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;
}