Skip to content

Commit 91f4752

Browse files
committed
bug symfony#32500 [Debug][DebugClassLoader] Include found files instead of requiring them (fancyweb)
This PR was merged into the 3.4 branch. Discussion ---------- [Debug][DebugClassLoader] Include found files instead of requiring them | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#32499 | License | MIT | Doc PR | no It fixes symfony#32499 + it makes the `DebugClassLoader` behaves like composer `ClassLoader` that is very likely the wrapped class loader. Commits ------- c7141c8 [Debug][DebugClassLoader] Include found files instead of requiring them
2 parents 2846089 + c7141c8 commit 91f4752

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Debug/DebugClassLoader.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ public function loadClass($class)
149149
if (!$file = $this->classLoader[0]->findFile($class) ?: false) {
150150
// no-op
151151
} elseif (\function_exists('opcache_is_script_cached') && @opcache_is_script_cached($file)) {
152-
require $file;
152+
include $file;
153153

154154
return;
155155
} else {
156-
require $file;
156+
include $file;
157157
}
158158
} else {
159159
\call_user_func($this->classLoader, $class);

0 commit comments

Comments
 (0)