Skip to content

Commit a48849e

Browse files
committed
bug symfony#26000 Fixed issue symfony#25985 (KevinFrantz)
This PR was merged into the 3.4 branch. Discussion ---------- Fixed issue symfony#25985 | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | yes/no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#25985 | License | MIT Oppress Zend OPcache API - ContextErrorException Commits ------- acb1cad Fixed issue symfony#25985
2 parents a1fb724 + acb1cad commit a48849e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Debug/DebugClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function loadClass($class)
141141
if ($this->isFinder && !isset($this->loaded[$class])) {
142142
$this->loaded[$class] = true;
143143
if ($file = $this->classLoader[0]->findFile($class) ?: false) {
144-
$wasCached = \function_exists('opcache_is_script_cached') && opcache_is_script_cached($file);
144+
$wasCached = \function_exists('opcache_is_script_cached') && @opcache_is_script_cached($file);
145145

146146
require $file;
147147

0 commit comments

Comments
 (0)