[php-src] Issue #7749: Segfault when recursive call is made

From: Date: Sun, 12 Dec 2021 19:28:01 +0000
Subject: [php-src] Issue #7749: Segfault when recursive call is made
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238362@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7749 Comment Author: mvorisek > which, btw, is a bad practice, because it can cause unwanted oom kill in linux PHP tracks memory usage, thus if memory_limit is set, it will limit memory usage correctly and no system OOM will occur (if there is enought memory for the set limit of course) > but i don't think a hard recursion limit won't impact that badly the performance of > zend doing it's job with the statement above, I belive we can do that with zero performance impact, eg. if PHP is OOM, check if the stack trace is above some treshold and convert that error to recursion limit reached error ;-)

« previous php.bugs (#238362) next »