#58942 closed enhancement (fixed)
Replace `php_sapi_name` function with `PHP_SAPI` constant
Reported by: | ayeshrajans | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.4 | Priority: | normal |
Severity: | trivial | Version: | |
Component: | General | Keywords: | has-patch commit |
Focuses: | performance, coding-standards | Cc: |
Description
Super-micro optimization that replaces php_sapi_name
function call with PHP_SAPI constant. One fewer function call, although it would take millions of calls to have a meaningful difference.
Attachments (1)
Change History (8)
This ticket was mentioned in PR #4934 on WordPress/wordpress-develop by @ayeshrajans.
14 months ago
#1
#2
@
14 months ago
- Summary changed from Repalce `php_sapi_name` function with `PHP_SAPI` constant to Replace `php_sapi_name` function with `PHP_SAPI` constant
#5
@
14 months ago
- Keywords commit added
- Version trunk deleted
Thanks @ayeshrajans for ticket and PR.
The PR 4934 got enough approval.
@SergeyBiryukov could you please take final review.
@SergeyBiryukov commented on PR #4934:
14 months ago
#7
Thanks for the PR! Merged in r56346.
Note: See
TracTickets for help on using
tickets.
Super-micro optimization that replaces
php_sapi_name
function call with PHP_SAPI constant. One fewer function call, although it would take millions of calls to have a meaningful difference.Trac ticket: https://core.trac.wordpress.org/ticket/58942