From ee68f41be205528327370fbdfd6c9919a4da1e0e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 26 Jan 2018 14:14:23 +0100 Subject: [PATCH] using PHP_BINARY constant instead of - sometimes not set - $_SERVER['_'] --- api/asyncwrapper.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/api/asyncwrapper.php b/api/asyncwrapper.php index f754f264a3..07316aecc6 100644 --- a/api/asyncwrapper.php +++ b/api/asyncwrapper.php @@ -1,4 +1,4 @@ -#!/usr/bin/php -qC +#!/usr/bin/env php no memory limit - system($php. ' -q -d memory_limit=-1 '.$path_to_egroupware.'/api/asyncservices.php '. $matches[1]); + system(PHP_BINARY. ' -q -d memory_limit=-1 '.$path_to_egroupware.'/api/asyncservices.php '. $matches[1]); } }