Page MenuHomePhabricator

D21566.diff
No OneTemporary

D21566.diff

diff --git a/support/init/init-script.php b/support/init/init-script.php
--- a/support/init/init-script.php
+++ b/support/init/init-script.php
@@ -56,6 +56,15 @@
// inspect "args", and this option generally obscures useful debugging
// information without any benefit in the context of Phabricator.
'zend.exception_ignore_args' => 0,
+
+ // See T13100. We'd like the regex engine to fail, rather than segfault,
+ // if handed a pathological regular expression.
+ 'pcre.backtrack_limit' => 10000,
+ 'pcre.recusion_limit' => 10000,
+
+ // NOTE: Phabricator applies a similar set of startup options for Web
+ // environments in "PhabricatorStartup". Changes here may also be
+ // appropriate to apply there.
);
foreach ($config_map as $config_key => $config_value) {
@@ -106,8 +115,6 @@
PhutilErrorHandler::initialize();
- PhutilErrorHandler::initialize();
-
// If "variables_order" excludes "E", silently repair it so that $_ENV has
// the values we expect.
PhutilExecutionEnvironment::repairMissingVariablesOrder();

File Metadata

Mime Type
text/plain
Expires
Mar 5 2025, 10:29 AM (5 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7225102
Default Alt Text
D21566.diff (1 KB)

Event Timeline