Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113107 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 45461 invoked from network); 8 Feb 2021 09:58:26 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Feb 2021 09:58:26 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id ECFF4180505 for ; Mon, 8 Feb 2021 01:43:07 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 8 Feb 2021 01:43:07 -0800 (PST) Received: by mail-lf1-f45.google.com with SMTP id j19so917159lfr.12 for ; Mon, 08 Feb 2021 01:43:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=b+s5IjP4Wqb2qxVCC+CoyXDT+duQOIDBrZV74EojcgQ=; b=oi9/b9g3yojXb3bJTcu+WHdB8+015KDl3NcvNCmwyhAM8IfBQ8hulsZxoh7pOrOBF2 WNmYow30Ghk9CYHQW2s64EFgQ1PnAiaxgodLN7Rdxcj1dM5MbWIsIqRjOwt7mLemCfYA lXF6DMTWSF/tuglvpuxroGWL6aannqa5Q+Pl7fgE3QjCDCJAnyT0qsz/NjWTj01UFR5I z0i7X874lO6t7nCb18IVPBaY0UETe4uw8DzrPuXPg8dYTwEQ9/TRaedr+9gBiwRME/q1 M77oznEfGFMzksZLlMsl1AH/Qya0Jc8amyHfVqlO8IXN/F0YSLX8e7DKSaiwaV1WwN0/ 6orA== 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:from:date :message-id:subject:to:cc; bh=b+s5IjP4Wqb2qxVCC+CoyXDT+duQOIDBrZV74EojcgQ=; b=TPYZ5DsBCFhqp54PLseHaZrtdiQTeGW37d4+BaLeuO0zQuYOQFshUU/4UancKLsslg WC46BpLlwhdtnAGwilosn3vMYwA08La9TdxLySAjp4oFj/0s1+1p+4QYstztvI9MA31t GT7hXlwnO0qybhLHbnEdO1n5yU8WMQHmqFo6pJ3PK2qw81Uvt4ckHAEsm8mPlyk4MscV RdjHzJPTOz1PQmCJfZG1awENBjprm++wZGEljJGE7CTFJnYZYiV93xYz58EFzXMnwizd vfjxGxxE7s2EL9hnmAPfnLFciVjohbz8MHScP+QCm44Bz2MsPmuzEYVEwB7zWbCRS7OB HB5g== X-Gm-Message-State: AOAM530UI0nyranRWDe4wWbuaKPoBbYVnT0dOf4fKyUHxfG67GKGTS+o K6GZwQ0n1T/aezPj0eooFJbxC18FS7FBpvAwUA== X-Google-Smtp-Source: ABdhPJyYEY2FRJjTCGuoZBykPrVwTvuUU9pv3T1gnXyGciCCrZvlfHrbbafsws/5zcbAfcjiYu+dQ9dN3nGTxKGoH2c= X-Received: by 2002:a19:f10f:: with SMTP id p15mr9466897lfh.486.1612777385928; Mon, 08 Feb 2021 01:43:05 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 8 Feb 2021 10:42:57 +0100 Message-ID: To: David Gebler Cc: "G. P. B." , PHP internals , Sara Golemon , Gabriel Caruso , Nikita Popov Content-Type: multipart/alternative; boundary="00000000000030ad9205bacfffca" Subject: Re: [PHP-DEV] Interaction between finally blocks and exit() From: guilliam.xavier@gmail.com (Guilliam Xavier) --00000000000030ad9205bacfffca Content-Type: text/plain; charset="UTF-8" Executing finally blocks after a die was discussed in https://externals.io/message/107497 "exit() via exception", but https://github.com/php/php-src/pull/5243 "Make exit() unwind properly" wasn't merged in 8.0, just https://github.com/php/php-src/pull/5768 "... (minimal version)". The change of behavior for https://3v4l.org/HGKHS "yield - finally" that occurred in PHP 7.1.14 and 7.2.2 is probably related to https://bugs.php.net/bug.php?id=75396 "Exit inside generator finally results in fatal error". Maybe the behavior changed back in PHP 8.0.0 because of an unexpected interaction of those two things? (adding Nikita to the CC list) -- Guilliam Xavier --00000000000030ad9205bacfffca--