1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-22 19:07:27 +01:00

[ticket/14094] Fix segmentation fault error on PHP 7 tests

PHPBB3-14094
This commit is contained in:
rxu 2015-08-12 17:13:51 +07:00
parent 81e045628d
commit df334b1da8

View File

@ -113,6 +113,10 @@ class phpbb_datetime_from_format_test extends phpbb_test_case
{
global $phpbb_root_path, $phpEx;
// This magically fixes the segmentation fault error on PHP7 tests
// while date_default_timezone_set('UTC') does not
date_default_timezone_set('Europe/Paris');
$lang_loader = new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx);
$lang = new \phpbb\language\language($lang_loader);
$user = new \phpbb\user($lang, '\phpbb\datetime');