[wp-trac] [WordPress Trac] #48116: Proposal: Tracking PHP Extension Usage

WordPress Trac noreply at wordpress.org
Tue Jul 19 16:46:13 UTC 2022


#48116: Proposal: Tracking PHP Extension Usage
------------------------------------+------------------------------
 Reporter:  dd32                    |       Owner:  adamsilverstein
     Type:  enhancement             |      Status:  assigned
 Priority:  normal                  |   Milestone:  6.1
Component:  Upgrade/Install         |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+------------------------------

Comment (by pbiron):

 Replying to [comment:12 dd32]:
 > For example, the `gd_info()` call returns a list of key-values where
 value can be false, ideally we'd probably only send the truthful items
 over (That way, older versions which don't know about a flag is the same
 as a newer version that knows about it, but says it doesn't support it)

 That could easily be handled by changing the 1 line in the
 [attachment:"48116.4.diff"]:

 `'gd_info'            => extension_loaded( 'gd' ) ? gd_info() : array(),`

 to

 `'gd_info'            => extension_loaded( 'gd' ) ? array_filter(
 gd_info() ) : array(),`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48116#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list