@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Apply "pcre.*_limit" ini options in web environments

Summary: Ref T13100. Ref T13586. See D21566, which applied these changes to CLI environments. Also apply them to web environments.

Test Plan: Loaded Phabricator.

Maniphest Tasks: T13586, T13100

Differential Revision: https://secure.phabricator.com/D21567

+18
+18
support/startup/PhabricatorStartup.php
··· 400 400 // a UTF-8 locale we can encounter problems when launching subprocesses 401 401 // which receive UTF-8 parameters in their command line argument list. 402 402 @setlocale(LC_ALL, 'en_US.UTF-8'); 403 + 404 + $config_map = array( 405 + // See PHI1894. Keep "args" in exception backtraces. 406 + 'zend.exception_ignore_args' => 0, 407 + 408 + // See T13100. We'd like the regex engine to fail, rather than segfault, 409 + // if handed a pathological regular expression. 410 + 'pcre.backtrack_limit' => 10000, 411 + 'pcre.recusion_limit' => 10000, 412 + 413 + // NOTE: Arcanist applies a similar set of startup options for CLI 414 + // environments in "init-script.php". Changes here may also be 415 + // appropriate to apply there. 416 + ); 417 + 418 + foreach ($config_map as $config_key => $config_value) { 419 + ini_set($config_key, $config_value); 420 + } 403 421 } 404 422 405 423