Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116368 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 76674 invoked from network); 15 Nov 2021 12:23:16 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Nov 2021 12:23:16 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 089E91804DB for ; Mon, 15 Nov 2021 05:17:59 -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=-0.8 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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, 15 Nov 2021 05:17:58 -0800 (PST) Received: by mail-wm1-f47.google.com with SMTP id o29so13928951wms.2 for ; Mon, 15 Nov 2021 05:17:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=ocWLXMVgOySR1X6tok/7dw0krXcDT4nj4dvST07qUW4=; b=IjzMa5Gas7v9wSJrESqNXYWvjUJVWsM10rRZZQ9ryaUvR5/acAgPgHz3Ij1jg87tJF 7nI9LkUn3UNFAHKiAahKrwpNvuWzNyy+u8fPsGyE7+Hi50oe23wxjtCjJad7gfbp5iw2 ZKZBxRF3PuMhBS5Xn9Jgx9nBCgsrA2hrF7AdRiyBp6V04ZZ+IwieDSL/8ViBFdWPcsTP kAx+glGzrgAzlVhx/EygBPA0eNM3BSXCQDT31vVl2SpH32vyc+IeiibVxGnhlJKwLBL9 uiRt94QyEL1pNyNyC1Jwpv+M59gvfNSBZejPs0u4e8S2vOq7HgdkQc8rrUc0FP6H2DuF dGNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=ocWLXMVgOySR1X6tok/7dw0krXcDT4nj4dvST07qUW4=; b=K+XDYrxd4D+W/t5OLOODRpjECu9u+QSUji3PwVqXQ7f6eNef47JI7QZuk+/UfZ0PC+ aqmyClLfBKwdELncaKedIaRvF1tJ8EixHy5hi6eY8AG5FGxZtka+zLEwnDPW4H8s6zoE ko3uq8AYE1lUp7TcuIki3e2+0r2JI4mr6KZJ3NtTEqTpcfb0dsak1Mog1GOsggfmjKH4 fSbSUaKtaCyr0u5yPcZ7aspWsXlGPKqxmYA8nOZzVIUOAX0C96f2EZIWF5dvxnAlwbYc 7YhY5a4QIiJETnyIJ7HDIaKaHUMr3sN3iiblwcxERL71r6ySJ22XIX2b8JUjijaWoFAQ vGtg== X-Gm-Message-State: AOAM530OwHOoUSqML1fM5wPKReitUt3ZfUGxa9gkDRmnGgLpdNppBmps MVvl7/z3Kn5BWuHEfHB3kFkZN40K81k3Sw== X-Google-Smtp-Source: ABdhPJyInW+XpOempnDBhooO3TDAwWtsHUHTCZYoITg6Cyu5xB2bu+coiXauprgdHlMbyMfSJAYqpw== X-Received: by 2002:a05:600c:4f14:: with SMTP id l20mr57845428wmq.164.1636982277309; Mon, 15 Nov 2021 05:17:57 -0800 (PST) Received: from [192.168.0.22] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.googlemail.com with ESMTPSA id a12sm14218507wrm.62.2021.11.15.05.17.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Nov 2021 05:17:56 -0800 (PST) Message-ID: <831911b1-69ea-f55e-a032-4a9b5865fe5f@gmail.com> Date: Mon, 15 Nov 2021 13:17:55 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Content-Language: en-GB To: PHP Internals References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Finer control of diagnostics (deprecations, notices, and warnings) From: rowan.collins@gmail.com (Rowan Tommins) On 15/11/2021 12:03, MichaƂ Marcin Brzuchalski wrote: > Personally, I think that given feature users would add whole vendor > directory, > since the vendor/package directory is not fixed, > may change - which in essence may go out of control and silently > invoke a waterfall of unexpected errors. I don't understand your concern; possibly you have misunderstood my suggestion? I'm saying that a user who wants to see if they are using deprecated features in their own code would want to turn on E_DEPRECATED in their main error_reporting, but turn it OFF for all third-party code. Most of the time, deprecation notices in third-party code are not useful to users: they are not responsible for fixing them in advance, and when actually switching major PHP version, they may have to switch to a different major release of the library before testing anyway. Regards, -- Rowan Tommins [IMSoP]