Docs: Update a comment about pcre.backtrack_limit
upper limit in benchmark_pcre_backtracking()
.
See #48074. git-svn-id: https://develop.svn.wordpress.org/trunk@46215 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
099adc0243
commit
9fd60c9e57
@ -465,7 +465,7 @@ class WpdbExposedMethodsForTesting extends wpdb {
|
|||||||
function benchmark_pcre_backtracking( $pattern, $subject, $strategy ) {
|
function benchmark_pcre_backtracking( $pattern, $subject, $strategy ) {
|
||||||
$saved_config = ini_get( 'pcre.backtrack_limit' );
|
$saved_config = ini_get( 'pcre.backtrack_limit' );
|
||||||
|
|
||||||
// Attempt to prevent PHP crashes. Adjust these lower when needed.
|
// Attempt to prevent PHP crashes. Adjust lower when needed.
|
||||||
$limit = 1000000;
|
$limit = 1000000;
|
||||||
|
|
||||||
// Start with small numbers, so if a crash is encountered at higher numbers we can still debug the problem.
|
// Start with small numbers, so if a crash is encountered at higher numbers we can still debug the problem.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user