Skip to content

Commit c90dcdd

Browse files
bug symfony#20833 [HttpKernel] Fix open_basedir compat in DataCollector (nicolas-grekas)
This PR was merged into the 3.2 branch. Discussion ---------- [HttpKernel] Fix open_basedir compat in DataCollector | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#20758 | License | MIT | Doc PR | - Commits ------- 84ad8eb [HttpKernel] Fix open_basedir compat in DataCollector
2 parents 205f235 + 84ad8eb commit c90dcdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/DataCollector/DataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private function decorateVar($var)
135135
return self::$stubsCache[$var] = new ClassStub($var);
136136
}
137137
}
138-
if (false !== strpos($var, DIRECTORY_SEPARATOR) && false === strpos($var, '://') && false === strpos($var, "\0") && is_file($var)) {
138+
if (false !== strpos($var, DIRECTORY_SEPARATOR) && false === strpos($var, '://') && false === strpos($var, "\0") && @is_file($var)) {
139139
return self::$stubsCache[$var] = new LinkStub($var);
140140
}
141141
}

0 commit comments

Comments
 (0)