Re: [DISCUSSION] User-land Throwable

From: Date: Tue, 29 Jul 2025 06:45:53 +0000
Subject: Re: [DISCUSSION] User-land Throwable
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-128284@lists.php.net to get a copy of this message
On Mon, Jul 28, 2025 at 8:54 PM Kamil Tekiela <tekiela246@gmail.com> wrote: > > > On Mon 28 Jul 2025, 20:50 Dmitry Derepko, <xepozzd@gmail.com> wrote: > > IMHO the trace should be set by the engine > Agreed. It should and it should continue to do it. > it should not be possible to overwrite the getTrace method. > >> Disagree. Not all traces can be created locally by the engine. 3rd-party traces are as useful as regular. --- Ok, what about a SyntheticException which will allow users to set message/code/trace/line/file/etc from scratch? Looks like a balanced solution between all our internal workarounds with custom properties and classes and those who don't want to change the rest of the mechanism of exceptions. -- Best regards, Dmitrii Derepko. @xepozz

« previous php.internals (#128284) next »