Only look for .hh files at runtime if using HHVM

The ClassMap generator will look regardless, but that's not a runtime
cost, so seems desirable (in case composer install/update needs to be
called with php5 for some resaon)
main
Fred Emmott 10 years ago
parent 734e5e2f2b
commit 7d3274224a

@ -292,7 +292,7 @@ class ClassLoader
}
$file = $this->findFileWithExtension($class, '.php');
if ($file === null) {
if ($file === null && defined('HHVM_VERSION')) {
// Indicates a Hack file (hacklang.org)
$file = $this->findFileWithExtension($class, '.hh');
}

Loading…
Cancel
Save