Changeset 52421
- Timestamp:
- 12/29/2021 04:34:12 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/external-http/basic.php
r52418 r52421 41 41 $response_body = $this->get_response_body( "https://dev.mysql.com/doc/relnotes/mysql/{$matches[1]}/en/" ); 42 42 43 preg_match( '#(\d{4}-\d{2}-\d{2}), General Availability#', $response_body, $mysqlmatches ); 43 // Retrieve the date of the first GA release for the recommended branch. 44 preg_match( '#.*(\d{4}-\d{2}-\d{2}), General Availability#s', $response_body, $mysqlmatches ); 44 45 45 // Per https://www.mysql.com/support/, Oracle actively supports MySQL releases for 5 years from GA release. 46 $mysql_eol = strtotime( $mysqlmatches[1] . ' +5 years' ); 46 /* 47 * Per https://www.mysql.com/support/, Oracle actively supports MySQL releases for 5 years from GA release. 48 * 49 * The currently recommended MySQL 5.7 branch moved from active support to extended support on 2020-10-21. 50 * As WordPress core is not fully compatible with MySQL 8.0 at this time, the "supported" period here 51 * is increased to 8 years to include extended support. 52 * 53 * TODO: Reduce this back to 5 years once MySQL 8.0 compatibility is achieved. 54 */ 55 $mysql_eol = strtotime( $mysqlmatches[1] . ' +8 years' ); 47 56 48 57 $this->assertLessThan( $mysql_eol, time(), "readme.html's Recommended MySQL version is too old. Remember to update the WordPress.org Requirements page, too." );
Note: See TracChangeset
for help on using the changeset viewer.