Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120654 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 80423 invoked from network); 21 Jun 2023 13:23:10 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Jun 2023 13:23:10 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0B5B718050B for ; Wed, 21 Jun 2023 06:23:10 -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 out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 21 Jun 2023 06:23:09 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A8A1C5C0084 for ; Wed, 21 Jun 2023 09:23:06 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute4.internal (MEProxy); Wed, 21 Jun 2023 09:23:06 -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=fm2; t=1687353786; x=1687440186; bh=h3s9rVBSq0 wftpGXXvr34O0oIDLX2fMiKU8vTKUh12U=; b=Ld9lseVjkJ9M5NCIZZz8v5096j awKKIcO7dAZkBnZF44uKkNyZFN6ekS3LwGx/Ds84gdkRZaG6CIKnypHfV1fmsqJp OnJjIk/tioQidJnGTniTuBL5hp5DLT2wrD66ZJGHm0Li6I7pUJE9HSHrn7nGALZz E47m3imGTZDxi9sAYfFfDOqqt9T3b4O05Zdi8402/4XbIhG9nYk+pfenUaYXhm5C N2KcnmtCLin6xaq0bwMDIROp9bL/e+MNME3gzmpoJtLH+CddkIFuMe3kpT0oW2G3 PC1JYZq9uBr/CmP7zN8jdoMsiQID0givc2+3Ij93iHz+rD31mMaSl+SGcfOA== 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=fm2; t=1687353786; x= 1687440186; bh=h3s9rVBSq0wftpGXXvr34O0oIDLX2fMiKU8vTKUh12U=; b=I MbbEwbAUhnT5kcMCT+sFG4OC9zawj0dhp8FKJFr9hlX/03bqPlrdY4V5PMksjeVO V1NI63FxEILnLjhjX0rqspfdYUBSahu2ixbfPMzZz2qg61ZMujGp2mnvSqJoKjCS CzKNVPONUbyf2QNQtwUQxdmn2lZw/x3Z7JuH8+CfBxpic0dWhu7BIKMw6XVYmu5i 6R7erxNmJWHV+9ui5VXAwUk07L5NVQQbBLooirOL4J2+FFro6Ztt8FhUAV+8+WdZ onkx/J+B7r191626VnESlG559gcmYMdcFBRfhAko710pU0sucXKnWmQSuphH6plp F8TrSYwLJ4TycZ9kV8nfw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgeefkedgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedfnfgr rhhrhicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtg homheqnecuggftrfgrthhtvghrnhepffffffejffdugfegvedviedttedvgfejffefffej leefjeetveehgefhhfdvgfelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 59F571700093; Wed, 21 Jun 2023 09:23:06 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-499-gf27bbf33e2-fm-20230619.001-gf27bbf33 Mime-Version: 1.0 Message-ID: <7f94ae6a-9c4c-4090-8a6e-d628064b575d@app.fastmail.com> In-Reply-To: References: <108411AD-DBC4-4436-8190-7569B7A0805F@gmail.com> Date: Wed, 21 Jun 2023 13:22:36 +0000 To: "php internals" Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Fwd: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures From: larry@garfieldtech.com ("Larry Garfield") On Wed, Jun 21, 2023, at 11:57 AM, Rowan Tommins wrote: > On Wed, 21 Jun 2023 at 09:43, M=C3=A1t=C3=A9 Kocsis wrote: > >> The reason why I think it's a good approach to have an intermediate s= tate >> is to give >> these people the possibility to defer the actual migration until the >> very end. >> > > > Isn't that exactly what a deprecation period is for? > > If we want to give people longer, just leave the functionality depreca= ted > for longer before removing it. If we want to phase that in gradually, = start > with a documentation-only deprecation, and add the deprecation notice = later. > > If the plan is to keep the current function name, we can't get any of = the > (very small) benefits of removing the extra signature until the final > removal anyway. > > Regards, > --=20 > Rowan Tommins > [IMSoP] I'm inclined to agree here, I think. I am all for a very-long grace per= iod to give people lots of time for this change, but if the end state is= just the object version being supported, then adding functions in the m= ean time doesn't make sense to me. I'd propose a doc-only deprecation now (with session_set_handler() added= for the object version), an E_DEPRECATED in 9.0, and full removal in 10= .0. Assuming the expected release schedule, that gives people ~2 years = before they see even an E_DEPRECATED, and 6-7 years before they are forc= ed to change. That should be ample time for anyone that still needs to = make the switch. (A generic "functions to object wrapper" class is probably a not-too-har= d composer package for someone to write, either, but that's not a task f= or internals.) --Larry Garfield