- Fixed Bug #0000012: Allow PollD to run forever. PHPs 'max_execution_time' cannot apply here.

This commit is contained in:
Frank Fegert 2009-07-03 21:49:38 +00:00
parent 8809708d3d
commit 5fcf79d57b
2 changed files with 18 additions and 0 deletions

View File

@ -35,6 +35,15 @@
include_once("../includes/global.php");
// If possible disable execution timeout.
if (ini_get('safe_mode')) {
echo "\nWARN: PHP 'safe_mode' is on. Cannot disable 'max_execution_time' parameter.\n";
echo " Please adjust 'max_execution_time' manually in ".get_cfg_var('cfg_file_path')."\n";
echo " or turn off 'safe_mode' for the PHP CLI.\n\n";
} else {
set_time_limit(0);
}
$tmonpolld = new PollD($adodb, $config["server_os"]);
$tmonpolld->controlPollD("on");
$tmonpolld->poll();

View File

@ -35,6 +35,15 @@
include_once("../includes/global.php");
// If possible disable execution timeout.
if (ini_get('safe_mode')) {
echo "\nWARN: PHP 'safe_mode' is on. Cannot disable 'max_execution_time' parameter.\n";
echo " Please adjust 'max_execution_time' manually in ".get_cfg_var('cfg_file_path')."\n";
echo " or turn off 'safe_mode' for the PHP CLI.\n\n";
} else {
set_time_limit(0);
}
$tmonpolld = new PollD_MP($config);
$tmonpolld->controlPollD("on");
$tmonpolld->poll();