[wp-trac] [WordPress Trac] #31215: wp_debug_backtrace_summary fails if args index isn't set

WordPress Trac noreply at wordpress.org
Sat Feb 24 12:31:28 UTC 2018


#31215: wp_debug_backtrace_summary fails if args index isn't set
-------------------------------+------------------------------
 Reporter:  paulschreiber      |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.4.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => reporter-feedback


Comment:

 Hi @paulschreiber, thanks for the report! Sorry it took so long for
 someone to get back to you.

 I could not reproduce the issue neither in PHP 7.2.2 (the latest version
 at the moment) nor in PHP 5.2.4 (the earliest supported version).

 Looking at the code, `$call` is the value of `debug_backtrace()`. The
 affected line is only executed if `$call['function']` is one of `include`,
 `include_once`, `require`, or `require_once`, and in all of those cases
 `$call['args']` is defined. It's even defined if I replace
 `debug_backtrace( false )` with
 `debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS )` a few lines above.

 Could you clarify when `$call['args']` would be undefined? Looks like
 there are no other reports of this issue.

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


More information about the wp-trac mailing list