We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37dd041 commit 90360c8Copy full SHA for 90360c8
src/Symfony/Component/ClassLoader/ApcClassLoader.php
@@ -122,8 +122,10 @@ public function loadClass($class)
122
*/
123
public function findFile($class)
124
{
125
- if (false === $file = apcu_fetch($this->prefix.$class)) {
126
- apcu_store($this->prefix.$class, $file = $this->decorated->findFile($class));
+ $file = apcu_fetch($this->prefix.$class, $success);
+
127
+ if (!$success) {
128
+ apcu_store($this->prefix.$class, $file = $this->decorated->findFile($class) ?: null);
129
}
130
131
return $file;
0 commit comments