Making WordPress.org

Opened 7 weeks ago

Closed 7 weeks ago

#8116 closed defect (bug) (invalid)

PHP8.2.29 is shown as an old PHP version

Reported by: sebastienserre's profile sebastienserre Owned by:
Milestone: Priority: normal
Component: API Keywords: needs-patch 2nd-opinion
Cc:

Description

In site Health, PJP version 8.2.29 is shown as an old PHP version:
At https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/misc.php#L1582, WordPress is querying https://api.wordpress.org/core/serve-happy/1.0/?php_version=8.2.29 which is reporting PHP8.2.29 as not supported

Attachments (1)

image.png (21.8 KB) - added by sebastienserre 7 weeks ago.

Download all attachments as: .zip

Change History (3)

@sebastienserre
7 weeks ago

#1 @sebastienserre
7 weeks ago

I went further in debug and I think the mistake is around https://github.com/WordPress/wordpress.org/blob/trunk/api.wordpress.org/public_html/core/serve-happy/1.0/include.php#L33 but do not have enough skills I think to understand what is wrong !

#2 @dd32
7 weeks ago

  • Component changed from Browse Happy to API
  • Resolution set to invalid
  • Status changed from new to closed

This is correct, PHP 8.2 is no longer actively supported by PHP.

It's still receiving Security updates, but is considered EOL by PHP.

https://github.com/WordPress/wordpress.org/pull/497

To quote #6612

For context, the relevant ServeHappy API constants are:

  • RECOMMENDED_PHP is the latest branch of PHP which WordPress.org recommends.
  • SUPPORTED_PHP is the lowest branch of PHP which is actively supported.
  • SECURE_PHP is the lowest branch of PHP which is receiving security updates.
  • ACCEPTABLE_PHP is the lowest branch of PHP which is still considered "acceptable" in WordPress. Sites with a version lower than this will see the ServeHappy dashboard widget urging them to update.

If you disagree with the messaging used by core, this should be raised with the core PHP team.

Note: See TracTickets for help on using tickets.