aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMáté Bartus <mate.bartus@gmail.com>2015-08-12 15:42:06 +0200
committerMáté Bartus <mate.bartus@gmail.com>2015-08-12 15:42:06 +0200
commit951e9bb3c5604faf282432cd9ee174fca568b0d2 (patch)
treef41e7219a691b47e06583f9883eb3083f13e8f97 /tests
parent4773742881131f7493fbb2b971971e922df003ec (diff)
parentdf334b1da8049c57c09eb052313c0e4d869f6cce (diff)
downloadforums-951e9bb3c5604faf282432cd9ee174fca568b0d2.tar
forums-951e9bb3c5604faf282432cd9ee174fca568b0d2.tar.gz
forums-951e9bb3c5604faf282432cd9ee174fca568b0d2.tar.bz2
forums-951e9bb3c5604faf282432cd9ee174fca568b0d2.tar.xz
forums-951e9bb3c5604faf282432cd9ee174fca568b0d2.zip
Merge pull request #3826 from rxu/ticket/14094
[ticket/14094] Fix segmentation fault error on PHP 7 tests
Diffstat (limited to 'tests')
-rw-r--r--tests/datetime/from_format_test.php4
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');