We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a84360a commit 7dbfff4Copy full SHA for 7dbfff4
1 file changed
src/OriginDetection.php
@@ -63,11 +63,14 @@ public function parseCgroupNodePath($lines)
63
64
public function getCgroupInode($cgroupMountPath, $procSelfCgroupPath)
65
{
66
- if (!is_readable($procSelfCgroupPath)) {
+ // phpcs:disable
67
+ $content = @file_get_contents($procSelfCgroupPath);
68
+ // phpcs:enable
69
+ if ($content == false) {
70
return '';
71
}
72
- $cgroupControllersPaths = $this->parseCgroupNodePath(file_get_contents($procSelfCgroupPath));
73
+ $cgroupControllersPaths = $this->parseCgroupNodePath($content);
74
75
foreach ([self::CGROUPV1BASECONTROLLER , ''] as $controller) {
76
if (!isset($cgroupControllersPaths[$controller])) {
0 commit comments