Skip to content

Commit 9b9d243

Browse files
author
Fehér Zoltán
committed
sfAutoload include: eval only if forced on HHVM
1 parent 48c7e32 commit 9b9d243

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)