Skip to content

Conversation

@ste93cry
Copy link
Contributor

@ste93cry ste93cry commented Jan 7, 2022

The keys returned by the debug_backtrace() function for each stacktrace frame are almost all optional. This PR adds the missing checks to avoid the code to crash if the keys are not present

@hrach
Copy link
Member

hrach commented Jan 8, 2022

Do you have any staktrace/example we could use to add a test for this? Thx

@hrach hrach added the bug label Jan 8, 2022
@ste93cry
Copy link
Contributor Author

ste93cry commented Jan 8, 2022

The args key is missing when either DEBUG_BACKTRACE_IGNORE_ARGS is used (not this case clearly) or when zend.exception_ignore_args = On

@hrach hrach merged commit 60ba3b9 into nextras:main Jan 9, 2022
@hrach
Copy link
Member

hrach commented Jan 9, 2022

Thanks for explanation and PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants