From 64959c75fe62b8d275469d021933920ba03287bd Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Wed, 7 Jan 2015 15:36:35 +0100 Subject: [PATCH] clear out whether pcntl extension is not installed or just pcntl_fork is unavailable, fixes #1469 Signed-off-by: Michael Kaufmann (d00p) --- scripts/jobs/cron_traffic.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/jobs/cron_traffic.php b/scripts/jobs/cron_traffic.php index f613746a..5d141ebc 100644 --- a/scripts/jobs/cron_traffic.php +++ b/scripts/jobs/cron_traffic.php @@ -59,10 +59,14 @@ if (function_exists('pcntl_fork')) { } } else { - fwrite($debugHandler,"PHP compiled without pcntl. Not forking traffic-cron, this may take a long time!"); + if (extension_loaded('pcntl')) { + $msg = "PHP compiled with pcntl but pcntl_fork function is not available."; + } else { + $msg = "PHP compiled without pcntl."; + } + fwrite($debugHandler, $msg." Not forking traffic-cron, this may take a long time!"); } - require_once makeCorrectFile(dirname(__FILE__) . '/cron_traffic.inc.functions.php'); /**