Fatal error: Call to undefined function Doctrine\Common\is_object() in D:\WorkspaceAll\cmf\sandbox\vendor\doctrine\common\lib\Doctrine\Common\ClassLoader.php on line 240
When I'm trying to install CMF sandbox on windows localhost. How can this be possible? Could anybody help me an explaination for this?
This is the function:
public static function classExists($className)
{
if (class_exists($className, false) || interface_exists($className, false)) {
return true;
}
foreach (spl_autoload_functions() as $loader) {
if (is_array($loader)) { // array(???, ???)
if (is_object($loader[0])) {
if ($loader[0] instanceof ClassLoader) { // array($obj, 'methodName')
if ($loader[0]->canLoadClass($className)) {
return true;
}
} else if ($loader[0]->{$loader[1]}($className)) {
return true;
}
} else if ($loader[0]::$loader[1]($className)) { // array('ClassName', 'methodName')
return true;
}
} else if ($loader instanceof \Closure) { // function($className) {..}
if ($loader($className)) {
return true;
}
} else if (is_string($loader) && $loader($className)) { // "MyClass::loadClass"
return true;
}
if (class_exists($className, false) || interface_exists($className, false)) {
return true;
}
}
return false;
}
Many thanks.