Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86358 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65219 invoked from network); 23 May 2015 21:26:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2015 21:26:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=kelerest123@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kelerest123@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.48 as permitted sender) X-PHP-List-Original-Sender: kelerest123@gmail.com X-Host-Fingerprint: 209.85.218.48 mail-oi0-f48.google.com Received: from [209.85.218.48] ([209.85.218.48:36542] helo=mail-oi0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/80-59548-470F0655 for ; Sat, 23 May 2015 17:26:12 -0400 Received: by oihb142 with SMTP id b142so36095278oih.3 for ; Sat, 23 May 2015 14:26:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=uWQ2+fKmX+4qEb3KlvEg9CAhYoWbHMb1/ryG5w7ybKc=; b=ReQbukDeG5XdRzdAjnCqAkJ2T3gQYcKz86Q6Bpx0TKoKUsfzuyhsVa2YjlizwOIgdT MXR762MJssT2qGpAKfEPWRfwY0emyTZYXdyyzs3QcxOiPFSG/qbgu9AF52Smf1O23JAT QopGXrIkp1S1vD0Y5CzItoD4Q5aF/i0zhmK8Wy5Un1tMP39LL7EtwRJW8KKKyFvatxK+ mExodnNerqclI3ZV0uVE+3JlOV5hnVd6peTeOjF6geQYv5P//2Q5mtOx6xz3d+q7RiRw BMH3dFdihC7UEh33OYYkHZyk6RxI4A3GHTQWO5PpSFJXwC7wCQ0l3HTS0cENfxr/kfh7 KDSQ== X-Received: by 10.202.73.73 with SMTP id w70mr1355351oia.102.1432416369272; Sat, 23 May 2015 14:26:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.104.7 with HTTP; Sat, 23 May 2015 14:25:48 -0700 (PDT) In-Reply-To: <000301d09526$ee7b0580$cb711080$@gmail.com> References: <000301d09526$ee7b0580$cb711080$@gmail.com> Date: Sat, 23 May 2015 23:25:48 +0200 Message-ID: To: Benjamin Morel Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a113dec46dc6dcf0516c66c49 Subject: Re: [PHP-DEV] Allow __toString() to throw exceptions From: kelerest123@gmail.com (=?UTF-8?B?SmFrdWIgS3Viw63EjWVr?=) --001a113dec46dc6dcf0516c66c49 Content-Type: text/plain; charset=UTF-8 > > Hi, > Hi Benjamin. I have a question: is there any reason to throw an exception from __toString, *other* than a non-recoverable error, which would denote that the object, which the __toString method is called on, does not have any meaningful string representation? Because if not, core implementation fully serves its purpose throwing Fatal error now, even if it is non-standard way. @aharvey said : Should there ever be a Zend Engine 3, however, this could be revisited. > > ZE III is now here (AFAIK). So this have to be revisited :-*)* Regards, Kubo2 --001a113dec46dc6dcf0516c66c49--