[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:16:22 UTC 2023


#55711: Introduce a function to determine whether a function can be called.
------------------------------+-----------------------------
 Reporter:  theode            |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Future Release
Component:  General           |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  php8 needs-patch  |     Focuses:  administration
------------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:17 costdev]:
 > This ticket was discussed in the recent bug scrub.
 [https://github.com/WordPress/wordpress-develop/pull/3716 PR 3716] uses
 `function_exists()`, which the discussion in this ticket has determined
 isn't reliable.

 I might be missing something, but I don't see any follow-up to comment:10
 that would indicate anything other than a `function_exists()` check is
 needed here. Except for when Suhosin is in use, do we know any other
 circumstances when this does not work as expected?

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


More information about the wp-trac mailing list