Re: [PHP-DEV] Exceptions, stack traces, and serialization

2013-10-08 Thread Rowan Collins
Tim Starling wrote (on 08/10/2013): Is it possible to make the trace options be overridable by the Exception subclass? That would provide a migration path for any code that did rely on the args being available. And I think our app could benefit from having closure objects available for logging, e

Re: [PHP-DEV] Exceptions, stack traces, and serialization

2013-10-07 Thread Tim Starling
On 08/10/13 09:01, Rowan Collins wrote: > > (2) Don't capture arguments in the trace of an exception, similar to > debug_backtrace with DEBUG_BACKTRACE_IGNORE_ARGS set. This would > technically be a BC break, but I'm not sure how much real code would > care. It's impossible to reconstruct details o

[PHP-DEV] Exceptions, stack traces, and serialization

2013-10-07 Thread Rowan Collins
Hi All, A while ago, I discovered the awkward fact that PHP exceptions can only sometimes be serialized, because they contain a stack trace which might involve non-serializable objects. In my case, one of the function calls in the trace happened to have been passed a SimpleXMLElement as an a