-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Infinite loop when trying to copy "recursive" array #166
Comments
Thanks for the report. I gave it a quick try and I honestly don't see how to achieve this. To detect/avoid recursions in object graphs, we use a hash map of I don't see how to do a similar hash map with primitive values 🤔 |
No worries, and feel free to close this report. I ran into this while working on some PHPUnit internals and suddenly a test for a weird edge case that uses such a data structure triggered this crash. I'll investigate this on my end, maybe we can simply delete the test (and document the fact that such weird data structures are not supported). |
It would be nice if DeepCopy could detect array structures that lead to infinite loops.
segfault.php
Without Xdebug
With Xdebug
The text was updated successfully, but these errors were encountered: