[wp-trac] [WordPress Trac] #58942: Replace `php_sapi_name` function with `PHP_SAPI` constant
WordPress Trac
noreply at wordpress.org
Wed Aug 2 10:57:25 UTC 2023
#58942: Replace `php_sapi_name` function with `PHP_SAPI` constant
------------------------------+--------------------------------------------
Reporter: ayeshrajans | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.4
Component: General | Version:
Severity: trivial | Resolution: fixed
Keywords: has-patch commit | Focuses: performance, coding-standards
------------------------------+--------------------------------------------
Changes (by SergeyBiryukov):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"56346" 56346]:
{{{
#!CommitTicketReference repository="" revision="56346"
Site Health: Use `PHP_SAPI` constant instead of the `php_sapi_name()`
function.
This is a micro-optimization that removes an unnecessary function call.
Follow-up to [44986], [45156].
Props ayeshrajans, jrf, mukesh27, rmccue.
Fixes #58942.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58942#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list