Skip to content

[9.x] Only prints source on dd calls from dump.php - #44367

Merged
taylorotwell merged 1 commit into
9.xfrom
fix/source-when-not-called-from-dump
Sep 29, 2022
Merged

[9.x] Only prints source on dd calls from dump.php#44367
taylorotwell merged 1 commit into
9.xfrom
fix/source-when-not-called-from-dump

Conversation

@nunomaduro

@nunomaduro nunomaduro commented Sep 29, 2022

Copy link
Copy Markdown
Member

This pull request solves 2 things:

  1. Removes the DEBUG_BACKTRACE_PROVIDE_OBJECT flag from debug_backtrace making the call to that function more performant.
  2. Removes hardcoded 7 key from trace, and guesses the trace key dynamically - as the trace may change as described on the 44366 issue. By guessing the key dynamically, we only try to guess the source on the there is direct call to the dd or dump global functions.

@nunomaduro nunomaduro self-assigned this Sep 29, 2022
@nunomaduro nunomaduro added the bug label Sep 29, 2022
@taylorotwell
taylorotwell merged commit 71f2154 into 9.x Sep 29, 2022
@taylorotwell
taylorotwell deleted the fix/source-when-not-called-from-dump branch September 29, 2022 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants