From 21a1f6ea6430544b1e53d5affdfb14e32c9cf29d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 7 Oct 2014 09:31:25 +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 5c7f2a9ddf..a75f57e13d 100644 --- a/phpgwapi/inc/class.asyncservice.inc.php +++ b/phpgwapi/inc/class.asyncservice.inc.php @@ -599,7 +599,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 ());