Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119944 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 79747 invoked from network); 12 Apr 2023 07:08:54 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Apr 2023 07:08:54 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4209D180546 for ; Wed, 12 Apr 2023 00:08:54 -0700 (PDT) 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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS24940 176.9.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 12 Apr 2023 00:08:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1681283332; bh=bPtOHkSPEsxH4v41V9x8Z3W6eyIK1H6WRdbdMTsQ15w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=XKsr83z9bezl/YjlXzsTZQj/81hygjQzZxybhBvNePfeJ8Ym1JM5l1n8zokYgy1Ax 9TYIPtzw0UCqJUNWaQGKR6ku4SJhpTdzwEcYQJEN2HSaxwi4y0E6vHryt5TZVwFMcw V4+R7yIZAnyRFYn8X4EhEJmiVyGN5q2LzGswPF3fgpJa/x/t4F4+OqI/c76CMaqKrx eF2re1xGr2Y1vRrB9cerYNNcZfbTawOZQ7+r+a/R5//vV6FpMQWeYtK+2pRRF9Oe9R A4kIJ/c/73Fj6a1W08ve6VuVJ7304658tM1obJtm/iwWIAGA14097ylZalGrgRpuVI KL9ov5ldauZhw== Message-ID: <3e9933bd-a23f-0a67-fdef-615607989227@bastelstu.be> Date: Wed, 12 Apr 2023 09:08:50 +0200 MIME-Version: 1.0 To: Jeffrey Dafoe , Sara Golemon Cc: Lynn , php internals References: <8abbed60-5569-4eca-ad12-957877feed9b@app.fastmail.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Future stability of PHP? From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=c3=bcsterhus?=) Hi On 4/11/23 18:32, Jeffrey Dafoe wrote: > I’m unsure if it’s practical to run deprecations on in prod and our test suite, although substantial, doesn’t cover all code paths. You should be able to enable deprecations in production and then check the type of error within your error handler. If it's E_DEPRECATED the error goes into a separate log file / is sent to a separate error collection endpoint and execution continues, whereas any E_NOTICE or E_WARNING is converted to an Exception and execution is aborted. Best regards Tim Düsterhus