mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/10512] Call startup.php from tests/bootstrap.php
PHPBB3-10512
This commit is contained in:
parent
2ae6b8a5ed
commit
c0b3239bf3
1 changed files with 2 additions and 18 deletions
|
@ -10,25 +10,9 @@
|
||||||
define('IN_PHPBB', true);
|
define('IN_PHPBB', true);
|
||||||
$phpbb_root_path = 'phpBB/';
|
$phpbb_root_path = 'phpBB/';
|
||||||
$phpEx = 'php';
|
$phpEx = 'php';
|
||||||
|
require_once $phpbb_root_path . 'includes/startup.php';
|
||||||
|
|
||||||
$table_prefix = 'phpbb_';
|
$table_prefix = 'phpbb_';
|
||||||
|
|
||||||
if (!defined('E_DEPRECATED'))
|
|
||||||
{
|
|
||||||
define('E_DEPRECATED', 8192);
|
|
||||||
}
|
|
||||||
error_reporting(E_ALL & ~E_DEPRECATED);
|
|
||||||
|
|
||||||
// If we are on PHP >= 6.0.0 we do not need some code
|
|
||||||
if (version_compare(PHP_VERSION, '6.0.0-dev', '>='))
|
|
||||||
{
|
|
||||||
define('STRIP', false);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
@set_magic_quotes_runtime(0);
|
|
||||||
define('STRIP', (get_magic_quotes_gpc()) ? true : false);
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once $phpbb_root_path . 'includes/constants.php';
|
require_once $phpbb_root_path . 'includes/constants.php';
|
||||||
|
|
||||||
require_once 'test_framework/phpbb_test_case_helpers.php';
|
require_once 'test_framework/phpbb_test_case_helpers.php';
|
||||||
|
|
Loading…
Add table
Reference in a new issue