php-memory-profiler icon indicating copy to clipboard operation
php-memory-profiler copied to clipboard

Prevent stack overflows

Open arnaud-lb opened this issue 2 years ago • 0 comments

Description

Deep recursion in a PHP script could cause a memory exhaustion. With memprof, deep recursion could cause a stack overflow instead, because memprof forces the VM to use recursion. This makes memprof unhelpful for these cases.

Memprof should add a recursion limit or stop relying on recursion.

arnaud-lb avatar Jan 12 '22 14:01 arnaud-lb