Fix file_get_contents to handle internal PHP extension errors correctly.

This commit is contained in:
Németh Balázs
2019-04-29 15:39:27 +02:00
parent adf2894a06
commit 1df9ac10a0
+5 -1
View File
@@ -119,7 +119,11 @@ class Frame implements Serializable
return null;
}
$this->fileContentsCache = file_get_contents($filePath);
try {
$this->fileContentsCache = file_get_contents($filePath);
} catch (ErrorException $exception) {
return null;
}
}
return $this->fileContentsCache;