mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-52475 core: workaround PHP7 bug #70110 with preg_match
This commit is contained in:
parent
0dfcc2541a
commit
144fb5e0a0
@ -709,6 +709,11 @@ ini_set('arg_separator.output', '&');
|
||||
// Work around for a PHP bug see MDL-11237
|
||||
ini_set('pcre.backtrack_limit', 20971520); // 20 MB
|
||||
|
||||
// Work around for PHP7 bug #70110. See MDL-52475 .
|
||||
if (ini_get('pcre.jit')) {
|
||||
ini_set('pcre.jit', 0);
|
||||
}
|
||||
|
||||
// Set PHP default timezone to server timezone.
|
||||
core_date::set_default_server_timezone();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user