Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130390 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 lists.php.net (Postfix) with ESMTPS id B4F3C1A00BC for ; Wed, 18 Mar 2026 12:28:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1773836895; bh=6VIblRbz2Adt4m2ms9HBTQj3JqNPTtpFhfFkjopCGyY=; h=Date:To:From:Cc:Subject:In-Reply-To:References:From; b=ECb0y/nnv0HJGaNUh8DYX27nzjMo402ZjwYkqWgUWvXWcw9/AhNT5JEz+BCIzU+IV KqSGAvzayt/Q9z4KyXrYgudMSozJbJ4Ro3Llvbs0akxdSCQ41E3OZinOWe/rX8EbGJ 8oQ7NUEg9gOxO3O6mDeGRcmbtEEOBCLcrFHFmoq+qX74UdiaQcSWcdAJ4OdbA26aqI JQZzJ62sPP0M6Al8p0rrke1KBgG0mqrBIiajOpL2tWjxdNDiH47APAhTc7usAQ7FUk rEeQkvIcYN5E4357wgJz7KWYysMvlJI3JthKrv15Tum1fgHn9xbMvgiyTIo5cqoHPF RWLiwpEdLtxkQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A17E81801DA for ; Wed, 18 Mar 2026 12:28:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-10626.protonmail.ch (mail-10626.protonmail.ch [79.135.106.26]) (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 ; Wed, 18 Mar 2026 12:28:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpb.moe; s=protonmail2; t=1773836887; x=1774096087; bh=6VIblRbz2Adt4m2ms9HBTQj3JqNPTtpFhfFkjopCGyY=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=iNlkvZJwVfYzjwmS3bBJvtWiWBOuawFx6JtNuT7e6bJJaZ8LPQLn5Pe96WLT1K+E0 GkM6RUbh10Uc2g53Le/qun47nF2nIK0TwlYl1UVzRF6bi+6tyqfVGht+EfwDZMHR7v K5uph1PQWQ5FZtqllmVVjmY2RWt/dgbbMzexp0bT3stE2iCkTpA6r2TMGYSSzHLbKT M7JTFy5S+GOVcoZqB8smJJWcj/M3fH/KIJWfvv/E3dM2H3JJYEex9FM9Q6EM+l65MC DtSHgMfWoG6M0O+/4g/nHpxF46e0bsGvo9K0s2eDV3jvHlAkYmsuqH8J3dDk0q1jsm PN7/sSkxumz5g== Date: Wed, 18 Mar 2026 12:28:03 +0000 To: Christian Schneider Cc: PHP internals Subject: Re: [PHP-DEV] [RFC] Exempt input type and value validation from BC Break policy Message-ID: In-Reply-To: References: <650FCF24-CDBD-4F37-BA50-6D691EE3E3E1@cschneid.com> Feedback-ID: 96993444:user:proton X-Pm-Message-ID: fbb88aab0cd99a5c89763ba311b1ab6ed967a942 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: internals@gpb.moe ("Gina P. Banyard") On Monday, 9 March 2026 at 15:53, Christian Schneider wrote: > Am 09.03.2026 um 14:36 schrieb Gina P. Banyard : > > I don't see how going through an E_WARNING phase is helpful, rather I s= ee it as detrimental. > > Foremost, what is the behaviour of introducing a warning? > > Do we exit early and return false? > > Or do we just warn and continue to use a possible default or nonsensica= l value? >=20 > in all the previous cases where we deprecated things we continued to leav= e the behaviour unchanged apart from issuing the warning. >=20 > > AFAIK every time a warning got introduced it followed the first approac= h, so this doesn't seem to address the concern of giving developers more ti= me. >=20 > Replace E_WARNING in your phrasing with E_DEPRECATED and your statement b= ecomes obviously false. > If that's the differentiator for you then I'm happy to have an E_DEPRECAT= ED phase before throwing a ValueError exception. These are not similar to deprecations. In these instances you have a silent= bug that is being suppressed, and you should be aware of it loud and clear= . A deprecation is a mechanism to indicate that previously *valid* and bug fr= ee code is getting phased out. These are fundamentally two different situations, thus I disagree that they= should use a deprecation. >=20 > > However, if we do continue using the prior behaviour then we haven't so= lved the concern in the slightest. > > As it may be a warning for one PHP version and in the next PHP version = the extension supports a new flag which removes the warning for that value,= leading back to a silent BC break if the warning wasn't addressed. >=20 > Nothing can protect you from old code using a new flag by accident. Imagi= ne someone skipping the version with the ValueError and going directly from= 8.5 to the version with added flags. That's not the scope here. >=20 > > Then comes the topic about how long should it be a warning? Until the n= ext major? A single release cycle? I don't want warning promotion to become= the same exhausting discussion that deprecation duration already is. >=20 > In my view it is *exactly* the same as deprecations and should be handled= as such. > I'm on your side here that I don't want yet another process and that's wh= y I'm advocating the IMHO tested and proven solution we are using for depre= cations. =20 As mentioned before I disagree that this is like a deprecation. > > I have no idea how you handle hosting, but when I used shared hosting i= n the past I would never have anyone tell me that my code was producing war= nings or notices. > > And even the one website I manage for someone which is on OVH shared ho= sting I can still select a PHP version (heck even downgrading to 5.4 for so= me reason). > > So I'm struggling to see how for the average end user this is impacting= them? >=20 > I'm supporting applications running on hosters where they bump the minima= l supported version quite often. > "Works for me" is hardly ever a strong argument... This then seems to be self-inflicted problems from these specific hosters. Unless they take the QA responsibility to ensure the migration works, just = blindly upgrading PHP's version seems frankly irresponsible. Best regards, Gina P. Banyard