AW: [PHP-DEV] Serializing exceptions

From: Date: Mon, 23 Mar 2015 06:11:46 +0000
Subject: AW: [PHP-DEV] Serializing exceptions
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-85419@lists.php.net to get a copy of this message
> -----Ursprüngliche Nachricht----- > Von: Pierre Joye [mailto:pierre.php@gmail.com] > Gesendet: Montag, 23. März 2015 06:57 > An: Juan Basso > Cc: Stanislav Malyshev; PHP Internals > Betreff: Re: [PHP-DEV] Serializing exceptions > > On Mon, Mar 23, 2015 at 12:31 PM, Juan Basso <jrbasso@gmail.com> wrote: > > Maybe you can implement the __sleep method and just return the > > documented attributes (message, code, file, line). > > > > Not perfect, but probably more useful than throw an exception, > > specially if the exception is something that is the attribute of some > > object that is being serialized. > > Well, can someone explain me why some code would need to serialize exception in the 1st place? > > Cheers, > -- > Pierre > > @pierrejoye | http://www.libgd.org > > -- > PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: > http://www.php.net/unsub.php Maybe some user defined mechanism for remote exception handling

« previous php.internals (#85419) next »