mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +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;
|
||||
|
||||
// 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');
|
||||
|
|
Loading…
Add table
Reference in a new issue