From 6a9558e2a7151c235bc95ad207c56605f6c1da4a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 7 Oct 2014 09:31:53 +0000 Subject: [PATCH] do no call posix_* methods (from posix extension), if it is not available --- phpgwapi/inc/class.asyncservice.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.asyncservice.inc.php b/phpgwapi/inc/class.asyncservice.inc.php index 354f49123a..7b3223c15c 100644 --- a/phpgwapi/inc/class.asyncservice.inc.php +++ b/phpgwapi/inc/class.asyncservice.inc.php @@ -600,7 +600,7 @@ class asyncservice { echo '

'.lang('%1 is not executable by the webserver !!!',$this->$name)."

\n"; $perms = fileperms($this->$name); - if (!($perms & 0x0001) && ($perms & 0x0008)) // only executable by group + if (!($perms & 0x0001) && ($perms & 0x0008) && function_exists('posix_getuid')) // only executable by group { $group = posix_getgrgid(filegroup($this->$name)); $webserver = posix_getpwuid(posix_getuid ());