[wp-trac] [WordPress Trac] #46038: Exiting during the WSoD shutdown handler prevents all other shutdown handlers from being called

WordPress Trac noreply at wordpress.org
Mon Jan 21 19:09:28 UTC 2019


#46038: Exiting during the WSoD shutdown handler prevents all other shutdown
handlers from being called
-----------------------------------------------+-------------------------
 Reporter:  johnbillion                        |       Owner:  schlessera
     Type:  defect (bug)                       |      Status:  closed
 Priority:  high                               |   Milestone:  5.1
Component:  Bootstrap/Load                     |     Version:  trunk
 Severity:  normal                             |  Resolution:  fixed
 Keywords:  servehappy has-patch dev-feedback  |     Focuses:
-----------------------------------------------+-------------------------
Changes (by flixos90):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44671" 44671]:
 {{{
 #!CommitTicketReference repository="" revision="44671"
 Bootstrap/Load: Ensure that the fatal error shutdown handler does not
 prevent other shutdown handlers from being called.

 This changeset adds support for a new `wp_die()` argument `exit`, which
 defaults to true and determines whether `wp_die()` should actually
 terminate the request. The new fatal error handler then calls `wp_die()`
 with that argument set to false, as calling `die()` or `exit` from a PHP
 shutdown function prevents other shutdown functions from being called.

 Props schlessera, johnbillion.
 Fixes #46038. See #44458.
 }}}

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


More information about the wp-trac mailing list