[wp-trac] [WordPress Trac] #61574: [PHP] Remove PHP < 7.2 code
WordPress Trac
noreply at wordpress.org
Sun Jul 7 12:43:00 UTC 2024
#61574: [PHP] Remove PHP < 7.2 code
---------------------------------------------+-----------------------------
Reporter: ayeshrajans | Owner: SergeyBiryukov
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 6.7
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch commit has-unit-tests | Focuses:
---------------------------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"58684" 58684]:
{{{
#!CommitTicketReference repository="" revision="58684"
Code Modernization: Replace `substr( PHP_OS, 0, 3 )` calls with
`PHP_OS_FAMILY`.
The `PHP_OS_FAMILY` constant indicates the operating system family PHP was
built for, and is available as of PHP 7.2.0.
Reference: [https://www.php.net/manual/en/reserved.constants.php#constant
.php-os-family PHP Manual: Predefined Constants: PHP_OS_FAMILY].
Follow-up to [23255], [57753], [57985], [58678].
Props ayeshrajans, jrf.
See #61574.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61574#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list