1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-08 09:46:46 +02:00

[ticket/10046] Remove register_shutdown_function() in cron.php from develop.

PHPBB3-10046
This commit is contained in:
Andreas Fischer
2011-03-12 15:07:31 +01:00
parent df096b6b52
commit a627133b15
4 changed files with 2 additions and 67 deletions

View File

@@ -45,20 +45,4 @@ interface phpbb_cron_task
* @return bool
*/
public function should_run();
/**
* Returns whether this cron task can be run in shutdown function.
*
* By the time shutdown sequence invokes a particular piece of code,
* resources that that code requires may already be released.
* If so, a particular cron task may be marked shutdown function-
* unsafe, and it will be executed in normal program flow.
*
* Generally speaking cron tasks should start off as shutdown function-
* safe, and only be marked shutdown function-unsafe if a problem
* is discovered.
*
* @return bool
*/
public function is_shutdown_function_safe();
}