1
0
Fork 0

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)
pull/2823/head
Fred Emmott 2014-03-18 16:21:41 -07:00
parent 734e5e2f2b
commit 7d3274224a
1 changed files with 1 additions and 1 deletions

View File

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