Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15284773
D21566.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D21566.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D21566: Apply "pcre.*_limit" config options at startup in CLI environments
Attached
Detach File
Event Timeline
Log In to Comment