[wp-trac] [WordPress Trac] #19986: Issue with add_filter() and add_action() when using anonymous functions.

WordPress Trac noreply at wordpress.org
Sat Oct 10 07:04:23 UTC 2015


#19986: Issue with add_filter() and add_action() when using anonymous functions.
-------------------------------------------------+-------------------------
 Reporter:  pagesimplify                         |       Owner:
     Type:  defect (bug)                         |  SergeyBiryukov
 Priority:  normal                               |      Status:  assigned
Component:  Plugins                              |   Milestone:  4.4
 Severity:  minor                                |     Version:  3.3.1
 Keywords:  has-patch dev-feedback needs-unit-   |  Resolution:
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 Per the [https://irclogs.wordpress.org/chanlog.php?channel=wordpress-
 dev&day=2014-05-05&sort=asc#m845750 IRC discussion], the issue is specific
 to [http://bugs.xdebug.org/view.php?id=924 Xdebug]:

 > nacin: if we trim whatever _wp_filter_build_unique_id() returns we risk
 breaking things
 > nacin: I would want to avoid messing with that.
 > JohnBeales: What if we just strip out null bytes?
 > nacin: well, it'd be slower for no reason, and the purpose of the null
 byte is also to guarantee its own namespace
 > nacin: it sounds to me like it would be very easy to create a non-
 WordPress proof-of-concept where this fails, and submit it as a bug to
 XDebug

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


More information about the wp-trac mailing list