Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87466 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18678 invoked from network); 31 Jul 2015 23:02:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2015 23:02:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.49 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.49 mail-pa0-f49.google.com Received: from [209.85.220.49] ([209.85.220.49:35182] helo=mail-pa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/00-17913-1AEFBB55 for ; Fri, 31 Jul 2015 19:02:58 -0400 Received: by pabkd10 with SMTP id kd10so47458811pab.2 for ; Fri, 31 Jul 2015 16:02:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=jIz/tPuSZsk38CinM07sJKsRlFNpy00C5REQY57RsYA=; b=gE0lvykkYIFIv5J+0YPhBNtlhgrnzFmvbdJhXycH77C186ivMUvJcEhAbwiHuVPdSi 48Kv/KlUVT1qYtiNLaGCLSgNZIan6bGaz2gP4drcUxPmhS1aEyxvzKfsC5AM6zFaptn4 oFHCsR1DPBrztz0k/bH/rNn/qdCEXhCKv4f9P4OCh1k+cVqizRLc7LCA1xPI0uOXawGf zImSWYUNLJXJkBfOJ8/9UZxF7u4qs9BmLcG7rylgFbvlKIVlS3CK1yPPZj4M5/ZPlXr/ Sm/PBfwDcrG6wE+Gjk0L77v5oaOpKiYINDO7as/Ko38lLHVQk0n1ZzeU8z1LNBGLIO8M qc5A== X-Received: by 10.68.173.97 with SMTP id bj1mr12315pbc.122.1438383774733; Fri, 31 Jul 2015 16:02:54 -0700 (PDT) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by smtp.gmail.com with ESMTPSA id cj7sm9590241pdb.33.2015.07.31.16.02.53 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jul 2015 16:02:54 -0700 (PDT) To: Stephen Coakley , internals@lists.php.net References: <550FA2ED.6080000@gmail.com> <55B7B08E.7070700@gmail.com> <55B7EA22.7060504@gmail.com> <63.12.24609.047DBB55@pb1.pair.com> X-Enigmail-Draft-Status: N1110 Message-ID: <55BBFE9B.6030904@gmail.com> Date: Fri, 31 Jul 2015 16:02:51 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <63.12.24609.047DBB55@pb1.pair.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Serializing exceptions From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > week or two and I serialize exceptions (excluding stack trace arguments) > to send them back to the calling process to aid in debugging process > failures. But then you don't need to serialize Exception. You need to send the text representation of Exception, for humans to look at, not the live Exception object. Sending the actual object would be next to impossible anyway (i.e. how you send over the live DB connection on DB query exception?). -- Stas Malyshev smalyshev@gmail.com