Changeset 46214 for trunk/tests/phpunit/includes/utils.php
- Timestamp:
- 09/20/2019 10:01:36 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/utils.php
r46127 r46214 466 466 $saved_config = ini_get( 'pcre.backtrack_limit' ); 467 467 468 // Attempt to prevent PHP crashes. Adjust these lower when needed. 469 if ( version_compare( phpversion(), '5.4.8', '>' ) ) { 470 $limit = 1000000; 471 } else { 472 $limit = 20000; // 20,000 is a reasonable upper limit, but see also https://core.trac.wordpress.org/ticket/29557#comment:10 473 } 468 // Attempt to prevent PHP crashes. Adjust these lower when needed. 469 $limit = 1000000; 474 470 475 471 // Start with small numbers, so if a crash is encountered at higher numbers we can still debug the problem.
Note: See TracChangeset
for help on using the changeset viewer.