Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105539 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 43418 invoked from network); 1 May 2019 05:51:58 -0000 Received: from unknown (HELO mail-ua1-f42.google.com) (209.85.222.42) by pb1.pair.com with SMTP; 1 May 2019 05:51:58 -0000 Received: by mail-ua1-f42.google.com with SMTP id p13so5484243uaa.11 for ; Tue, 30 Apr 2019 19:54:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=3hDJSUMc44iLPYgIR99rlUtl+n8XXKYlL6lMcLIVdwg=; b=sxZHbd/LFpwjXN3vSakriXLtp9qBG1na8d6d5PmyNzSwL2KdijYiXXZPpRprTtCeK1 HnWjxBiNG0A5PF701x7JPXvdBC7gbNRit9y1fh/NJ+vEX7Qwi9U03o3uGAVNtY+TKHPC dXE+9gUW4liW855CbOlqZS0bceLwttXoPpQ48IcZoR9MZUPRnC+S/UrvUxYD0D1jXkch GZTV0Sc0aEFB+OiQvuxFxBZitfXXOIkMhjXmH+508JhqPiaHFku2W0AWW2aDaBhsPNzk TXc3GGKt52KEc/wlVQgRqJDZD17+Jb0LtoS48sLeYTJVU5ij12OpYpmefx2wbmmP5SQt g3mQ== X-Gm-Message-State: APjAAAW1nE/Z/Amm2Fh1KIGyZjtycLlH/Pig84SLHeBdHuCm7XcrOTqU UJm5qc1CVDP4AMU7GJt8WpjFWSkg8QvEhKbk4oQ= X-Google-Smtp-Source: APXvYqyYVWESTSGr8HKDibkHFyGbygYhZFKI2h7k0+2N7I7sw+xgtN7wQ5F4wELyOIzy72/Waoe1cuRGvSXEmjAq2wE= X-Received: by 2002:ab0:6947:: with SMTP id c7mr5796519uas.99.1556679255884; Tue, 30 Apr 2019 19:54:15 -0700 (PDT) MIME-Version: 1.0 References: <2b141597-e68e-1843-51f5-16d6ed8c41fa@gmail.com> In-Reply-To: <2b141597-e68e-1843-51f5-16d6ed8c41fa@gmail.com> Reply-To: bishop@php.net Date: Tue, 30 Apr 2019 22:53:00 -0400 Message-ID: To: Stanislav Malyshev Cc: Dan Ackroyd , Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="0000000000001388010587caa29d" Subject: Re: [PHP-DEV] [RFC] Allow throwing exceptions from __toString() From: bishop@php.net (Bishop Bettini) --0000000000001388010587caa29d Content-Type: text/plain; charset="UTF-8" On Tue, Apr 30, 2019 at 2:49 PM Stanislav Malyshev wrote: > > That said, the work done on the patch is super impressive. I am > reasonably sure that Nikita caught as many instances of something going > wrong when string conversion fails as humanly possible. And I agree that > banning exceptions didn't actually solve the problem anyway, because > error handlers present the same exactly issue - exceptions are just much > more prominent and immediate in their effects, but with some hostile > coding - or even some inadvertently convoluted one - you'd run into the > same issues again. Some extensions will probably have some trouble - > though with high likelyhood they already do anyway. I second that "super impressive work". I'm certain some of why it's been deferred is because doing it was, well, unpleasant. Thanks Nikita for wrestling this. I spent an hour today going through the patch, especially its effect on the phar and imap extensions, and Zend/*. The patch seems good to me, minus a few targeted comments. But I'd still think this would be a "many eyes needed" kind of PR, especially from extension maintainers. +1 from me. --0000000000001388010587caa29d--