Skip to content

Conversation

@drdzyk
Copy link
Contributor

@drdzyk drdzyk commented Dec 20, 2022

No description provided.

$recursion_depth_exceeded = false;
$toArray = function($v) use (&$toArray, &$demangleField, &$with_class_names, $public_members_only, $isPrivateField, &$depth, &$recursion_depth_exceeded) {
if (is_object($v)) {
if ($depth++ > 64) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is $depth--?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@drdzyk drdzyk force-pushed the seismont/limit-recursion-in-to-array branch from 57ddfee to 0ebf0a4 Compare January 30, 2023 13:45
@drdzyk drdzyk requested a review from tolk-vm January 30, 2023 13:50
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.

3 participants