Re: Deferred backtrace generation algorithm.

From: Date: Fri, 02 May 2025 12:59:30 +0000
Subject: Re: Deferred backtrace generation algorithm.
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hello Bob.

> So you effectively will have to manage a weakmap of next-stack-frame to exception objects.

Yes, that was exactly my first idea — to use a WeakMap from
exceptions. Now it seems that copying part of the frame information
will use less memory. But that's not certain :)

> Of note is also that $trace and $string are actually private properties.
Agree.

> If you're interested in providing a patch, you're definitely welcome.
Yes, I can give it a try. I'm just wondering if I'm missing something
important in the logic.


Thread (5 messages)

« previous php.internals (#127272) next »