mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/14340] Revert fix for segmentation fault error on phpBB 3.2 PHP7 tests
The fix was introduces with #3826, now the PHP core bug has been fixed: https://bugs.php.net/bug.php?id=70249 PHPBB3-14340
This commit is contained in:
@@ -113,10 +113,6 @@ 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');
|
||||||
|
Reference in New Issue
Block a user