Make WordPress Core


Ignore:
Timestamp:
09/20/2019 10:01:36 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6.

Props jrf.
Fixes #48074.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/utils.php

    r46127 r46214  
    466466    $saved_config = ini_get( 'pcre.backtrack_limit' );
    467467
    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;
    474470
    475471    // 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.