Make WordPress Core

Changeset 61422


Ignore:
Timestamp:
01/01/2026 08:43:49 AM (4 months ago)
Author:
westonruter
Message:

Tests: Update regex to match PHP security releases in addition to stable releases.

PHP 8.3 changed from "Active support" to "Security fixes only" on January 1, 2026.

Follow-up to [61421], [33937].

Props mukesh27, westonruter.
See #33758.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/readme.php

    r60451 r61422  
    2121        $response_body = $this->get_response_body( 'https://www.php.net/supported-versions.php' );
    2222
    23         preg_match_all( '#<tr class="stable">\s*<td>\s*<a [^>]*>\s*([0-9.]*)#s', $response_body, $php_matches );
     23        preg_match_all( '#<tr class="(?:stable|security)">\s*<td>\s*<a [^>]*>\s*([0-9.]*)#s', $response_body, $php_matches );
    2424
    2525        $this->assertContains( $matches[1], $php_matches[1], "readme.html's Recommended PHP version is too old. Remember to update the WordPress.org Requirements page, too." );
Note: See TracChangeset for help on using the changeset viewer.