> -----Ursprüngliche Nachricht----- > Von: Pierre Joye [mailto:pierre....@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 <jrba...@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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php