Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85418 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48212 invoked from network); 23 Mar 2015 05:57:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Mar 2015 05:57:20 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.54 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.192.54 mail-qg0-f54.google.com Received: from [209.85.192.54] ([209.85.192.54:33545] helo=mail-qg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/B0-44294-B3BAF055 for ; Mon, 23 Mar 2015 00:57:16 -0500 Received: by qgfa8 with SMTP id a8so138312625qgf.0 for ; Sun, 22 Mar 2015 22:57:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qmEH+YGDk5hMQoBeTl2QiejRbih7+PeTfj/OxYLytXo=; b=ovlmmXZtyOhxbxrF+Yd3jkLj0b3GGcoWpDG3EKgyvIKyJ/E3S+5Z7ii3R2jo/VM3PI cuMP5oJBT9vJ6Jep8+GdvqFxwE8OuxFr+SxWYGztq+kVPqAF+VF5GhiUnmMqy1MiVH5o ti68/+EA5jxURfV66bvB4vsXd7EuRm/JvbVHYSPRMx/dOAHBgzCeK1qmSW3yLDQ6B4dW uLdctu1kLqvLKmfkkLoxlxvuZpNWALiwObFSxJt6Ing+yuqBXBA6xfRSDdcjPwFVkc7H WJev0hobn4WixZGI78+s4h6k0RN2lOz+LK6pUkHW6/sMxtp2rxWRiRdJIUDSE1IQ3IiE mQOw== MIME-Version: 1.0 X-Received: by 10.55.22.168 with SMTP id 40mr126996358qkw.101.1427090233634; Sun, 22 Mar 2015 22:57:13 -0700 (PDT) Received: by 10.96.39.195 with HTTP; Sun, 22 Mar 2015 22:57:13 -0700 (PDT) In-Reply-To: References: <550FA2ED.6080000@gmail.com> Date: Mon, 23 Mar 2015 12:57:13 +0700 Message-ID: To: Juan Basso Cc: Stanislav Malyshev , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Serializing exceptions From: pierre.php@gmail.com (Pierre Joye) On Mon, Mar 23, 2015 at 12:31 PM, Juan Basso 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