[wp-trac] [WordPress Trac] #55711: Introduce a function to determine whether a function can be called.
WordPress Trac
noreply at wordpress.org
Thu Feb 2 21:40:21 UTC 2023
#55711: Introduce a function to determine whether a function can be called.
--------------------------------+-----------------------------
Reporter: theode | Owner: SergeyBiryukov
Type: enhancement | Status: accepted
Priority: normal | Milestone: 6.2
Component: General | Version:
Severity: normal | Resolution:
Keywords: php8 needs-refresh | Focuses: administration
--------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* keywords: php8 needs-patch => php8 needs-refresh
* owner: (none) => SergeyBiryukov
* status: new => accepted
* milestone: Future Release => 6.2
Comment:
`function_exists()` seems to match what we generally use in other places
of core to check for potentially disabled functions, e.g. `ini_get()`, so
I'm not quite sure why this ticket is blocked in search of a different
solution.
Doing the same for `set_time_limit()` seems like a good first step here.
[https://github.com/WordPress/wordpress-develop/pull/3716 PR 3716] could
use a refresh to exclude external libraries (getID3, PHPMailer), but
otherwise looks good to me.
A new ticket could then be opened to explore alternatives to
`function_exists()` if there is evidence of its unreliability, and to
replace all of its instances in core.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55711#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list