8000 minor #19535 Workaround another buggy PHP warning (cbj4074) · symfony/symfony@cd3d04e · GitHub
[go: up one dir, main page]

Skip to content

Commit cd3d04e

Browse files
committed
minor #19535 Workaround another buggy PHP warning (cbj4074)
This PR was merged into the 2.7 branch. Discussion ---------- Workaround another buggy PHP warning | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Added error-suppression to the `is_executable($path)` call, too, per the bug noted just above. The cited issue manifests as such without it: 8000 ``` ErrorException in ExecutableFinder.php line 63: is_executable(): open_basedir restriction in effect. File(/usr/share/php) is not within the allowed path(s): (/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/local/zend/var/zray/extensions:/usr/local/zend/share:/usr/local/zend/var/plugins) ``` Commits ------- 4348f4b Workaround another buggy PHP warning
2 parents aae8e3d + 4348f4b commit cd3d04e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Process/ExecutableFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function find($name, $default = null, array $extraDirs = array())
6060
if (@is_dir($path)) {
6161
$dirs[] = $path;
6262
} else {
63-
if (basename($path) == $name && is_executable($path)) {
63+
if (basename($path) == $name && @is_executable($path)) {
6464
return $path;
6565
}
6666
}

0 commit comments

Comments
 (0)
0