[wp-trac] [WordPress Trac] #58942: Repalce `php_sapi_name` function with `PHP_SAPI` constant

WordPress Trac noreply at wordpress.org
Mon Jul 31 07:13:24 UTC 2023


#58942: Repalce `php_sapi_name` function with `PHP_SAPI` constant
-------------------------------------------+-----------------------------
 Reporter:  ayeshrajans                    |      Owner:  (none)
     Type:  enhancement                    |     Status:  new
 Priority:  normal                         |  Milestone:  Awaiting Review
Component:  General                        |    Version:  trunk
 Severity:  trivial                        |   Keywords:  has-patch
  Focuses:  performance, coding-standards  |
-------------------------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58942>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list