You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code below works as I would expect: it completes. But if I replace the bar with baz on line 42, the program no longer completes, because in this case a reference to the Foo remains somewhere inside the library. This doesn't seem to be the expected behavior.
Thanks for reporting! This is due to exceptions in PHP keeping the arguments of the stack trace by default, which can be disabled using the zend.exception_ignore_args INI option. A circular reference will prevent the reference from immediately being cleaned up, but a gc_collect_cycles() will clean up the reference. We're able to avoid the circular reference in this case, see e56a64d.
The code below works as I would expect: it completes. But if I replace the
bar
withbaz
on line 42, the program no longer completes, because in this case a reference to theFoo
remains somewhere inside the library. This doesn't seem to be the expected behavior.The text was updated successfully, but these errors were encountered: