Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130279 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 D45D61A00F8 for ; Mon, 9 Mar 2026 15:49:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1773071397; bh=//4pzjIIG6uzvRaeeXkrgeZP3NOFhMwDuvJ32zU1W9Q=; h=From:Subject:Date:References:To:In-Reply-To:From; b=VTIMc6o1YcRp72XRAI3n7RNY7Ku8wqq6JWWDNJBc5FYLXvnPFjTWjliyKLypNU0qC 4NXnuGfA3Ar5Ib93T1ynLs9n/h11ZxEQrNIlC7Pljj7LEjugBVNUmonikZJtKTwJ1L zgqpnbD2/NsR3nzhuFsKxT/RPlWhYFo2gdT+pzXpCCB/SqHc5cw4OyGZ1tIsKN6dW6 clgJlJdb8XkHMafEhp0K21ZDy4g4CgY6Usutw/Owjtwi5sOekvvIuVGE1yJVhx5dvI O5hgVKNihWR26xk3sRcvRAKUDrbOGeG1iAMXAU5whWNdE27/0ev4TyZQ81QR+6Owrf ym/4ohCWSg1GQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 17A73180062 for ; Mon, 9 Mar 2026 15:49:51 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_PASS, T_SPF_HELO_TEMPERROR autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail.gna.ch (darkcity.gna.ch [84.234.28.114]) (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 ; Mon, 9 Mar 2026 15:49:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.gna.ch (Postfix) with ESMTP id A017D238323A for ; Mon, 9 Mar 2026 16:49:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cschneid.com; s=default; t=1773071383; bh=//4pzjIIG6uzvRaeeXkrgeZP3NOFhMwDuvJ32zU1W9Q=; h=From:Subject:Date:References:To:In-Reply-To; b=SU/mFHxpekITYk1BRLaDenG8CmAFQs9Ydv4clOi5kz0kAtWgiZRLqXSSwXhXN6W2J Vv1L41NAO/QRv5mJK3FxAVW/432+SLivfttzzElLIeodQFrlNN7bcKWgDsKS8Gqy8S wNgXnphVNpeFP0ElfAFD3V6DBWgm8k8dbHyB7O1g= X-Virus-Scanned: amavisd-new at gna.ch Received: from mail.gna.ch ([127.0.0.1]) by localhost (mail.gna.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ICYYm1SwUqOZ for ; Mon, 9 Mar 2026 16:49:41 +0100 (CET) Received: from smtpclient.apple (unknown [194.169.219.181]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.gna.ch (Postfix) with ESMTPSA id 92CA02380A64 for ; Mon, 9 Mar 2026 16:49:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cschneid.com; s=default; t=1773071381; bh=//4pzjIIG6uzvRaeeXkrgeZP3NOFhMwDuvJ32zU1W9Q=; h=From:Subject:Date:References:To:In-Reply-To; b=l1N1SLNsxv+Mu9A92cD+OLMoNKpE1Rt+i7wpCx8swAT2uFoGqBXhuWSco8aCmNfyd F5Rst+2s3mfoTLcMp4AogKmzc0IkVIzl51l3OqTA/5rY1Q858IZOBdqXfY061HE7ZH m+EYaI4p0MbrICouHfbOtTONnUxagEWfNa1SjVp4= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: [PHP-DEV] [RFC] Exempt input type and value validation from BC Break policy Date: Mon, 9 Mar 2026 16:49:41 +0100 References: <650FCF24-CDBD-4F37-BA50-6D691EE3E3E1@cschneid.com> To: PHP internals In-Reply-To: Message-ID: X-Mailer: Apple Mail (2.3864.400.21) From: cschneid@cschneid.com (Christian Schneider) 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 = see 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 = nonsensical value? in all the previous cases where we deprecated things we continued to = leave the behaviour unchanged apart from issuing the warning. > AFAIK every time a warning got introduced it followed the first = approach, so this doesn't seem to address the concern of giving = developers more time. Replace E_WARNING in your phrasing with E_DEPRECATED and your statement = becomes obviously false. If that's the differentiator for you then I'm happy to have an = E_DEPRECATED phase before throwing a ValueError exception. > However, if we do continue using the prior behaviour then we haven't = solved 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. Nothing can protect you from old code using a new flag by accident. = Imagine 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. > Then comes the topic about how long should it be a warning? Until the = next major? A single release cycle? I don't want warning promotion to = become the same exhausting discussion that deprecation duration already = is. 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 = why I'm advocating the IMHO tested and proven solution we are using for = deprecations. > I have no idea how you handle hosting, but when I used shared hosting = in the past I would never have anyone tell me that my code was producing = warnings or notices. > And even the one website I manage for someone which is on OVH shared = hosting I can still select a PHP version (heck even downgrading to 5.4 = for some reason). > So I'm struggling to see how for the average end user this is = impacting them? I'm supporting applications running on hosters where they bump the = minimal supported version quite often. "Works for me" is hardly ever a strong argument... Regards, - Chris