diff options
author | rxu <rxu@mail.ru> | 2015-08-12 17:13:51 +0700 |
---|---|---|
committer | rxu <rxu@mail.ru> | 2015-08-12 17:13:51 +0700 |
commit | df334b1da8049c57c09eb052313c0e4d869f6cce (patch) | |
tree | c3d20169a0bdb9abcf7c56497fde9d92cd67bd0f /tests/datetime | |
parent | 81e045628d3ece7cbb6874725c2db49c71f65fe7 (diff) | |
download | forums-df334b1da8049c57c09eb052313c0e4d869f6cce.tar forums-df334b1da8049c57c09eb052313c0e4d869f6cce.tar.gz forums-df334b1da8049c57c09eb052313c0e4d869f6cce.tar.bz2 forums-df334b1da8049c57c09eb052313c0e4d869f6cce.tar.xz forums-df334b1da8049c57c09eb052313c0e4d869f6cce.zip |
[ticket/14094] Fix segmentation fault error on PHP 7 tests
PHPBB3-14094
Diffstat (limited to 'tests/datetime')
-rw-r--r-- | tests/datetime/from_format_test.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/datetime/from_format_test.php b/tests/datetime/from_format_test.php index 7ecb546768..32b88ff588 100644 --- a/tests/datetime/from_format_test.php +++ b/tests/datetime/from_format_test.php @@ -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'); |