Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 29, 2022

Conversation

nunomaduro
Copy link
Member

@nunomaduro nunomaduro commented Sep 29, 2022

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