From 4348f4be99eb5e2a5b677a4b770615be347cb77e Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Thu, 4 Aug 2016 13:11:16 -0400 Subject: [PATCH] Workaround another buggy PHP warning Added error-suppression to the `is_executable($path)` call, too, per the bug noted just above. The cited issue manifests as such without it: ``` 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) ``` --- src/Symfony/Component/Process/ExecutableFinder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Process/ExecutableFinder.php b/src/Symfony/Component/Process/ExecutableFinder.php index fa11cb6e40..3bf711149d 100644 --- a/src/Symfony/Component/Process/ExecutableFinder.php +++ b/src/Symfony/Component/Process/ExecutableFinder.php @@ -60,7 +60,7 @@ class ExecutableFinder if (@is_dir($path)) { $dirs[] = $path; } else { - if (basename($path) == $name && is_executable($path)) { + if (basename($path) == $name && @is_executable($path)) { return $path; } }