Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120254 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 7718 invoked from network); 12 May 2023 23:08:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 May 2023 23:08:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 00E181804AA for ; Fri, 12 May 2023 16:08:45 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS19151 66.111.4.0/24 X-Spam-Virus: No X-Envelope-From: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 12 May 2023 16:08:44 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 5EC5E5C0274 for ; Fri, 12 May 2023 19:08:43 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute4.internal (MEProxy); Fri, 12 May 2023 19:08:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1683932923; x=1684019323; bh=8aARWDHPjF vuYEkEj7qe1BPCcyH/GaE5bDBlxo2aXrs=; b=E2mdQALjuS0wa4gRn82xBgUlxR FF2gu1FpxVR8Our1QHf++r5PRzQJFE2uusr4+cLfBTrSxZC/BgbC4sVuT/vh02CS m0sd2k7oAyTX0K1/m4PsNbm5HlRfBoqY/PkXtv/5Yjng5EWAZ9bduykFwH2DchoU xApyaIwVvA7a4YEuQxPcZNlPgnJjakdNFAerwZaGR4/Zie7cUa5NSfD77xfXnYjw WtKBnpLfGms8zlcezUq2judBdDb2uzkvDhEaFzvdL389wa+JmfMiEETMfwYyA9oW AL5lQeTDUwJ17cjYPmYIl7i0TuVSGAiACOOT8wPAb3NKhPbSDBDdYs96OOow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1683932923; x= 1684019323; bh=8aARWDHPjFvuYEkEj7qe1BPCcyH/GaE5bDBlxo2aXrs=; b=M tfgS0QFrtPRAj8Wk5WE6tGP4hH5h7c1tRFH/5Cv2zeqLjGIUDlH7sfV0T7eydkzI 7CbR6IkRepgcYrcYjwFdK/+Dcc02V+pi6rHN5ZJOLR7D1taDBOx1U0NfqM5MxT60 aEpKbgJzP7AkTGO5obmVgokaIF2w1PDBrdU+8j+0VgrMUDWRZ+Qkth/Q1xsmEgk4 Ypnx8cr2knS1HJv4D/fgivkvjVPALDdmwz1HMOPxwCJf0+RNl4u4onqo7vtP6JUM 0Fhe84XtLnV61Uzy28N1S1eCfSjOknhKiQpjbLbKsICUMWKhMG2V2WehwaIp2bWa +1WdMn++epy8GoEALxq7Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehuddgudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedfnfgr rhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homheqnecuggftrfgrthhtvghrnhepffffffejffdugfegvedviedttedvgfejffefffej leefjeetveehgefhhfdvgfelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 06FEA1700089; Fri, 12 May 2023 19:08:43 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-415-gf2b17fe6c3-fm-20230503.001-gf2b17fe6 Mime-Version: 1.0 Message-ID: <68c1b984-1bcd-4dfd-8499-65fe392d7783@app.fastmail.com> In-Reply-To: <9F928894-199E-4C46-A590-136BDDE035F7@gmail.com> References: <9ab0173f-a6f2-66f6-3ab3-d5f0c44feb05@bastelstu.be> <9F928894-199E-4C46-A590-136BDDE035F7@gmail.com> Date: Fri, 12 May 2023 23:08:22 +0000 To: "php internals" Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures From: larry@garfieldtech.com ("Larry Garfield") On Fri, May 12, 2023, at 9:59 PM, Rowan Tommins wrote: > On 12 May 2023 19:17:20 BST, "M=C3=A1t=C3=A9 Kocsis" wrote: >>Libraries have to >>get rid of deprecated calls in any case, otherwise >>their users will surely start to complain.=20 > > I've said it before, and I'll say it again: the solution to this is no= t=20 > fewer deprecation messages; it's better documentation to stop people=20 > confusing deprecations for errors, and better functionality for users=20 > to choose which messages they see. A better argument, I think: The old function exists in 8.2, the new one does not. The new one exists in 8.3. The old one ceases to exist in 9.0. That means it's impossible to write code that works from 8.2 to 9.0 with= out version checks. The overlap period is only 2 releases (8.3 and 8.4)= . That's too short of a window. That's mitigated by these all being very uncommon cases, yes, but as a p= rinciple we should give people more warning than that. I am actually tempted to propose that we do deprecations at the very sta= rt of a release, 9.0 and 9.1 only, and then not allow them for the rest = of that major, for that exact reason. --Larry Garfield