Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123934 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id EBA121A009C for ; Thu, 27 Jun 2024 10:22:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719483849; bh=kTGrypDuyooeBaTG54dNOgxn8buVmMUxrgwhEWEWxXo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GSy1i7olhs44imqAeV4BNMYU7xEtG2kYUivkNaGKSbuHApC73vUDIcgJf6JU+2Ny3 pRQCKD3SRkxZtnUD774GIuHFXhmM6XoJ21pxan+pZUoAECzVNrjRmHPJa3R3gBbfyE pm8RqRMo2LWv0KOUUQw6R8L/mAXLQAjKPgCfu8WlwWv5na+2o0eQQ3R3wTzCYhO29O BtOSwEABNtJf0h4DAhyQzcFEnu6oXgHFKI5amgtKIli64WF/dJqsLnwEyROJld1Hxh p/ZGunUm9iIs9V1+n8oax6pkP4qFrZYJNT1K+KdV78yU3ErysnUgPa4Bg4UaJhAL8K 8kHXYFbKHfjBw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 17D871809E0 for ; Thu, 27 Jun 2024 10:24:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 27 Jun 2024 10:24:08 +0000 (UTC) Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2ebe0a81dc8so103407431fa.2 for ; Thu, 27 Jun 2024 03:22:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719483769; x=1720088569; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kTGrypDuyooeBaTG54dNOgxn8buVmMUxrgwhEWEWxXo=; b=dZJlZ2CDAxWT5fkUhyozTdzec+vai/AacsO0HmNhdpX2LUwv0pBdae1El1/U2iHDBR fjJLzDyXkMF7m/Gb32soT3OWYbPzcqVqbQgG2h3Wq7S1N2kBz64DpCmRVPfpamgaa4wp gXa7PvFxuFmn76xAUbEuQy6Vv+2WTUF9E53cJHaHRHSoj0fdZg0mbdr8DS1gQi/fGKTa wwwLeKzOd6YYeiAg6cEMCHk2Pjm5pw93km4NJ/LwooO+AYX5g5/W1tXFTxUBuJksXQOa qLSVqPnvECmPUGKdBqT7xjYGuMbXAaV3kgyNz2LTwtrSITaEU2Uy78KyxKy2v9nywapF MUtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719483769; x=1720088569; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kTGrypDuyooeBaTG54dNOgxn8buVmMUxrgwhEWEWxXo=; b=xLcXumwfxFLraVqHJtGlKXBGqQdBvIT/Vkg55G0w2YcV1cM4ug9wNXHi+KWOCPgGKl Ufx0GV80GAHVipTxwCfwmgzCB2OKGWrxToVphilgnALbyDNmAaErmSfo6IDzwaT+BEub V9cGgoV2IL+u3+kh59TUSvXPQIe/vXN8zRvbPQlppa5bJDeYUtxhzl6zG13WcuRvU6yR p8VCYfcMvwXtTBzIwYeKlkuOlDz1UxrEQrKp6AvdmYwjvPnu1wkDsx4krq5lmFNq08Y4 SU07Ib+utYD3P+E01duz7AW2EW4MdqCYLMmdxB87K6KQf+acB7TlW4xvpRTu73hYuUjV ZkKQ== X-Gm-Message-State: AOJu0YxbZ2Pz0KgK+nJ2qd6BOP+aMkln7qSovaF+h0jA5c64pfQB5rMp +pDV63UE57vWdWA2+HXarfu1UhxN9k+67ojfes+S/ChCWRk1sIQjl+4eh3XThmGpmwXR8mcbdhd fbky+BAkUBx4H6rq4NbAp5ZT8KmUn7RZ7 X-Google-Smtp-Source: AGHT+IErYeBXscHfvE/s0gS8BjjphbA1S9GO4UBafRmua6oOHjddZSYcWrLW2OqQ0y/fx03cTrAZyLGDOKJ5Sr6Ox8M= X-Received: by 2002:a2e:8199:0:b0:2ec:5668:3b93 with SMTP id 38308e7fff4ca-2ec5b30bc4emr95412951fa.12.1719483768663; Thu, 27 Jun 2024 03:22:48 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 27 Jun 2024 12:22:39 +0200 Message-ID: Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 8.4 To: "Gina P. Banyard" Cc: PHP internals Content-Type: text/plain; charset="UTF-8" From: tekiela246@gmail.com (Kamil Tekiela) On Thu, 27 Jun 2024 at 05:57, Gina P. Banyard wrote: > > On Wednesday, 26 June 2024 at 14:54, Kamil Tekiela wrote: > > > I think the "Deprecate passing E_USER_ERROR to trigger_error()" should > > be better explained. Why is using this constant a problem? There is a > > link to another RFC, but I can't see an explanation as to why > > E_USER_ERROR suffers the same problem as fatal errors do. From an > > average Joe's perspective, it looks fine and does the job > > https://3v4l.org/e97TO > > Returning control after an E_USER_ERROR seems problematic to me in > the first place, as the condition which lead to the trigger surely > implies the current code is unable to handle the situation. > See: https://3v4l.org/7pdvO > > But the issues with fatal errors are the same as explained in the > linked RFC, in that destructors (and finally blocks, etc.) are not > called. See: https://3v4l.org/J5NXF > > Using exceptions instead is more robust. > Is this explanation clear enough? > If so, I will incorporate it into the RFC. > > Best regards, > > Gina P. Banyard Yes, that is a better description.