-
Notifications
You must be signed in to change notification settings - Fork 8k
Fix GH-20840: crash on nested object with var_dump(). #20843
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
Conversation
|
Does this actually need to error (it's a debugging-tool after all) or may we just print a placeholder and resume? I don't feel strongly either way, this is mostly a cosmetic fuzzer problem and should rarely occur in the real world. |
|
I can always write |
|
Printing a placeholder would make sense 👍 Maybe something similar to "nesting level too deep" instead of "RECURSION", as the latter would imply that the structure is recursive. |
|
makes sense arnaud. I ll apply your suggestion later today. Cheers ! |
mitigate it with stack check limit. close phpGH-20843
mitigate it with stack check limit. close phpGH-20843
mitigate it with stack check limit. close phpGH-20843
mitigate it with stack check limit. close phpGH-20843
arnaud-lb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me!
ext/standard/var.c
Outdated
| level + 1, ' ', ZSTR_VAL(type_str)); | ||
| level + 1, ' ', ZSTR_VAL(type_str)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accidental whitespace change?
mitigate it with stack check limit. close phpGH-20843
mitigate it with stack check limit.