Skip to content

Commit 43ac110

Browse files
authored
Merge pull request #130 from ingatlancom/sfAutoload-hhvm
sfAutoload include: eval only if forced on HHVM
2 parents 9c3f665 + 9b9d243 commit 43ac110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/autoload/sfAutoload.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function reloadClasses($force = false)
138138

139139
$file = $configuration->getConfigCache()->checkConfig('config/autoload.yml');
140140

141-
if (defined('HHVM_VERSION'))
141+
if ($force && defined('HHVM_VERSION'))
142142
{
143143
// workaround for https://github.com/facebook/hhvm/issues/1447
144144
$this->classes = eval(str_replace('<?php', '', file_get_contents($file)));

0 commit comments

Comments
 (0)