Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105718 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 9566 invoked from network); 15 May 2019 20:49:23 -0000 Received: from unknown (HELO box.beccati.com) (176.9.123.236) by pb1.pair.com with SMTP; 15 May 2019 20:49:23 -0000 Received: from authenticated-user (box.beccati.com [176.9.123.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by box.beccati.com (Postfix) with ESMTPSA id EDEFA200198; Wed, 15 May 2019 19:55:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=beccati.com; s=mail; t=1557942920; bh=dhDcgUfM7N7hYH9XaOLuqOIX4+PAIuvYetX3HRTfJdg=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=LWhXLtfYF+rW6BlQlfgOh8SKtVHNDBsZGxK3zLXJfcH+ZUOUeLKvSZ3X02NIdF6Wt hVRYzrmh7vau7rrbBqSfPELmoSKmN74Kf4vhc3vvLJ2cNuvSeTe63FxLF1N5GmEsIX KOs/3N20TDCTmEEaMXywIsHZ+KSOMSKhMn2e1R7IA4wwZKJG+KskD0X5D1x5G9b2vQ S5djEEqnpo5RYKz/WAuHtrhM81+upUT1fxyCAbywv3bT8f9NWP33l7a2ksNJHoWqzf jaY2dqD1s6A9IBd39SFLHekIFksEcSuCOHNjSxo6olE32jBqeATQ430eUo6Gn+WMuM OG+piyVReOyZA== To: Dan Ackroyd Cc: PHP internals References: <916eb56a-3336-9e65-0f70-f1557975544d@beccati.com> <79b7d381-e56e-441b-3436-d6f2024704c6@gmx.de> Message-ID: <0ee156e3-9e72-4ae0-417e-a506def5447f@beccati.com> Date: Wed, 15 May 2019 19:55:16 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [RFC] Allow throwing exceptions from __toString() From: php@beccati.com (Matteo Beccati) Hi Dan, On 15/05/2019 03:15, Dan Ackroyd wrote: > Immediately nothing. > > Eventually, when a __toString() method throws an exception, and the > extension doesn't check for an exception being throw, bad things will > happen. > > But in my opinion, if people don't understand the implications of the > RFC even after reading the details in the RFC and this thread, then > this probably is an RFC they should skip voting on. I don't agree. I've worked on a few bug fixes and features in php-src, but never worked directly with exceptions, so I have to admit my ignorance on the topic. I was expecting "bad things to happen", but I wasn't quite sure about it. "Extension authors who would like to ensure that they handle exceptions from string conversions gracefully" and "It is generally sufficient to check whether an exception has been thrown" do not convey any sense of urgency. Since there are many people who can vote and only do PHP userland, I believe that clarifying impact on the RFC itself would surely benefit everyone. Suggesting that they shouldn't vote is definitely not helping. My 2c. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/