aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cron
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-05-08 03:21:19 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2011-05-08 03:21:19 -0400
commitab44fe5e394fe7b69c57266e2934200a3ee9bbc5 (patch)
treee6021c19fa15800787b1a7459fb8ad40cf2d8391 /phpBB/includes/cron
parent9c6660a2253149baff0094b943823de6758b35a6 (diff)
parentc0336988155736583c6fc4398980bd2a4e4036b6 (diff)
downloadforums-ab44fe5e394fe7b69c57266e2934200a3ee9bbc5.tar
forums-ab44fe5e394fe7b69c57266e2934200a3ee9bbc5.tar.gz
forums-ab44fe5e394fe7b69c57266e2934200a3ee9bbc5.tar.bz2
forums-ab44fe5e394fe7b69c57266e2934200a3ee9bbc5.tar.xz
forums-ab44fe5e394fe7b69c57266e2934200a3ee9bbc5.zip
Merge branch 'develop' into feature/prune-users
* develop: (170 commits) [ticket/10145] Always recompile all templates when DEBUG_EXTRA is defined. [feature/attachment-management-no-reassignment] Handle privacy and some more. [ticket/10148] Turn TEMPLATE_BITFIELD into an instance variable. [ticket/10147] Corrected a typo in includes/functions_template.php. [ticket/10141] Save a hash lookup when value is not in cache. [ticket/10143] Added tests for storing a previously deleted value in db cache. [ticket/10105] Update AIM express link. [ticket/10105] Update AIM application download link. [ticket/10137] Remove unintended space at end of PHP_URL_FOPEN_SUPPORT_EXPLAIN. [ticket/10141] Split double-assignment into conditional and unconditional part. [ticket/10141] Use a cache in $auth->_fill_acl() for better performance. [ticket/9961] Create log entries when users are activated. [ticket/10139] Make signatures of set_atomic() consistent by using $new_value. [ticket/10139] Rename $cache to $use_cache to avoid confusion with cache object [ticket/10006] Remove unneeded if statements [ticket/10006] Remove return values [ticket/10006] More testing [ticket/10006] Tweak the tests a bit [ticket/10006] Add phpbb_config::delete [ticket/7941] Added @return to generate_board_url docstring. ...
Diffstat (limited to 'phpBB/includes/cron')
-rw-r--r--phpBB/includes/cron/task/base.php19
-rw-r--r--phpBB/includes/cron/task/core/queue.php17
-rw-r--r--phpBB/includes/cron/task/task.php16
3 files changed, 0 insertions, 52 deletions
diff --git a/phpBB/includes/cron/task/base.php b/phpBB/includes/cron/task/base.php
index 38c0b844d9..9db8e3bd44 100644
--- a/phpBB/includes/cron/task/base.php
+++ b/phpBB/includes/cron/task/base.php
@@ -51,23 +51,4 @@ abstract class phpbb_cron_task_base implements phpbb_cron_task
{
return true;
}
-
- /**
- * 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 Whether the cron task is shutdown function-safe.
- */
- public function is_shutdown_function_safe()
- {
- return true;
- }
}
diff --git a/phpBB/includes/cron/task/core/queue.php b/phpBB/includes/cron/task/core/queue.php
index 0e9de05984..96cade0ce5 100644
--- a/phpBB/includes/cron/task/core/queue.php
+++ b/phpBB/includes/cron/task/core/queue.php
@@ -64,21 +64,4 @@ class phpbb_cron_task_core_queue extends phpbb_cron_task_base
global $config;
return $config['last_queue_run'] < time() - $config['queue_interval_config'];
}
-
- /**
- * Returns whether this cron task can be run in shutdown function.
- *
- * A user reported that using the mail() function during shutdown
- * function execution does not work. Therefore if email is delivered
- * via the mail() function (as opposed to SMTP) queue cron task marks
- * itself shutdown function-unsafe.
- *
- * @return bool
- */
- public function is_shutdown_function_safe()
- {
- global $config;
- // A user reported using the mail() function while using shutdown does not work. We do not want to risk that.
- return !$config['smtp_delivery'];
- }
}
diff --git a/phpBB/includes/cron/task/task.php b/phpBB/includes/cron/task/task.php
index 58c4a96f8e..cceccce44f 100644
--- a/phpBB/includes/cron/task/task.php
+++ b/phpBB/includes/cron/task/task.php
@@ -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();
}