diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-05-04 10:09:37 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-05-04 10:10:12 +0200 |
commit | b3cc20a575da12e7b66f3883dcc7f0eb6ca82ad8 (patch) | |
tree | 4bbd6c30748c06369114c1e78879bcb4df88b1a1 /phpBB/phpbb/cache/driver/null.php | |
parent | da68cfb7758d5b4faeac7b725d011700f398cc10 (diff) | |
download | forums-b3cc20a575da12e7b66f3883dcc7f0eb6ca82ad8.tar forums-b3cc20a575da12e7b66f3883dcc7f0eb6ca82ad8.tar.gz forums-b3cc20a575da12e7b66f3883dcc7f0eb6ca82ad8.tar.bz2 forums-b3cc20a575da12e7b66f3883dcc7f0eb6ca82ad8.tar.xz forums-b3cc20a575da12e7b66f3883dcc7f0eb6ca82ad8.zip |
[ticket/13782] Rename null driver to dummy for PHP7 compatibility
PHPBB3-13782
Diffstat (limited to 'phpBB/phpbb/cache/driver/null.php')
-rw-r--r-- | phpBB/phpbb/cache/driver/null.php | 153 |
1 files changed, 0 insertions, 153 deletions
diff --git a/phpBB/phpbb/cache/driver/null.php b/phpBB/phpbb/cache/driver/null.php deleted file mode 100644 index 298731ea54..0000000000 --- a/phpBB/phpbb/cache/driver/null.php +++ /dev/null @@ -1,153 +0,0 @@ -<?php -/** -* -* This file is part of the phpBB Forum Software package. -* -* @copyright (c) phpBB Limited <https://www.phpbb.com> -* @license GNU General Public License, version 2 (GPL-2.0) -* -* For full copyright and license information, please see -* the docs/CREDITS.txt file. -* -*/ - -namespace phpbb\cache\driver; - -/** -* ACM Null Caching -*/ -class null extends \phpbb\cache\driver\base -{ - /** - * Set cache path - */ - function __construct() - { - } - - /** - * {@inheritDoc} - */ - function load() - { - return true; - } - - /** - * {@inheritDoc} - */ - function unload() - { - } - - /** - * {@inheritDoc} - */ - function save() - { - } - - /** - * {@inheritDoc} - */ - function tidy() - { - global $config; - - // This cache always has a tidy room. - $config->set('cache_last_gc', time(), false); - } - - /** - * {@inheritDoc} - */ - function get($var_name) - { - return false; - } - - /** - * {@inheritDoc} - */ - function put($var_name, $var, $ttl = 0) - { - } - - /** - * {@inheritDoc} - */ - function purge() - { - } - - /** - * {@inheritDoc} - */ - function destroy($var_name, $table = '') - { - } - - /** - * {@inheritDoc} - */ - function _exists($var_name) - { - return false; - } - - /** - * {@inheritDoc} - */ - function sql_load($query) - { - return false; - } - - /** - * {@inheritDoc} - */ - function sql_save(\phpbb\db\driver\driver_interface $db, $query, $query_result, $ttl) - { - return $query_result; - } - - /** - * {@inheritDoc} - */ - function sql_exists($query_id) - { - return false; - } - - /** - * {@inheritDoc} - */ - function sql_fetchrow($query_id) - { - return false; - } - - /** - * {@inheritDoc} - */ - function sql_fetchfield($query_id, $field) - { - return false; - } - - /** - * {@inheritDoc} - */ - function sql_rowseek($rownum, $query_id) - { - return false; - } - - /** - * {@inheritDoc} - */ - function sql_freeresult($query_id) - { - return false; - } -} |