From f080302d33067c0e76b7a379022641014cb250ee Mon Sep 17 00:00:00 2001 From: mattab <matthieu.aubry@gmail.com> Date: Wed, 1 Oct 2014 13:00:21 +1300 Subject: [PATCH] Fixes #6314 do not display error Warning: shell_exec() [function.shell-exec]: Unable to execute 'stat -f -c "%T" /proc 2>/dev/null --- core/CliMulti/Process.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/CliMulti/Process.php b/core/CliMulti/Process.php index 6c5ac165caf..15dc539e59c 100644 --- a/core/CliMulti/Process.php +++ b/core/CliMulti/Process.php @@ -213,7 +213,7 @@ private static function isProcFSMounted() } // Testing if /proc is a resource with @fopen fails on systems with open_basedir set. // by using stat we not only test the existance of /proc but also confirm it's a 'proc' filesystem - $type = shell_exec('stat -f -c "%T" /proc 2>/dev/null'); + $type = @shell_exec('stat -f -c "%T" /proc 2>/dev/null'); return strpos($type, 'proc') === 0; }