public function findClass($name)
{
$components = explode("\\", $name);
$baseName = implode(DIRECTORY_SEPARATOR, $components);
foreach ($this->lookup as $path) {
if (PHP_INT_SIZE === 8 and file_exists($path . DIRECTORY_SEPARATOR . $baseName . "__64bit.php")) {
return $path . DIRECTORY_SEPARATOR . $baseName . "__64bit.php";
} elseif (PHP_INT_SIZE === 4 and file_exists($path . DIRECTORY_SEPARATOR . $baseName . "__32bit.php")) {
return $path . DIRECTORY_SEPARATOR . $baseName . "__32bit.php";
} elseif (file_exists($path . DIRECTORY_SEPARATOR . $baseName . ".php")) {
return $path . DIRECTORY_SEPARATOR . $baseName . ".php";
}
}
return null;
}