> Sorry, I didn't notice that https://bugs.php.net/bug.php?id=79194 was already > [solved and] closed with a similar answer.
In addition to phpspy, a tool I forgot to mention was Phan. (https://github.com/phan/phan) `phan --redundant-condition-detection` will enable many of Phan's checks, including code that looks like a function or method calling itself unconditionally, or with the same args. I got the idea for adding a check for PhanInfiniteRecursion (and PhanPossiblyInfiniteRecursionSameParams) after investigating a similar segfault over a year ago ago (and considering most of those solutions), to detect that type of bug before it ran. https://github.com/phan/phan/blob/master/internal/Issue-Types-Caught-by-Phan.md#phaninfiniterecursion has an example of what it detects -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php