mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/14094] Fix segmentation fault error on PHP 7 tests
PHPBB3-14094
This commit is contained in:
parent
81e045628d
commit
df334b1da8
1 changed files with 4 additions and 0 deletions
|
@ -113,6 +113,10 @@ class phpbb_datetime_from_format_test extends phpbb_test_case
|
||||||
{
|
{
|
||||||
global $phpbb_root_path, $phpEx;
|
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_loader = new \phpbb\language\language_file_loader($phpbb_root_path, $phpEx);
|
||||||
$lang = new \phpbb\language\language($lang_loader);
|
$lang = new \phpbb\language\language($lang_loader);
|
||||||
$user = new \phpbb\user($lang, '\phpbb\datetime');
|
$user = new \phpbb\user($lang, '\phpbb\datetime');
|
||||||
|
|
Loading…
Add table
Reference in a new issue