From: Roland Häder Date: Mon, 18 Apr 2011 20:53:00 +0000 (+0000) Subject: Errors from time_sleep_until() are now ignored, it may sometimes happen and annoying... X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=e62ba6655bd415a349dc4fb2dea913f07c39be0c Errors from time_sleep_until() are now ignored, it may sometimes happen and annoying in console output. --- diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index 7a43629c..9491cb23 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -1368,8 +1368,8 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { // Get current time and add idle time $sleepUntil = $this->getMilliTime() + abs($milliSeconds) / 1000; - // New PHP 5.1.0 function found - $hasSlept = time_sleep_until($sleepUntil); + // New PHP 5.1.0 function found, ignore errors + $hasSlept = @time_sleep_until($sleepUntil); } else { // My Sun Station doesn't have that function even with latest PHP // package. :(