Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120241 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 64829 invoked from network); 12 May 2023 14:29:33 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 May 2023 14:29:33 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D01B518004D for ; Fri, 12 May 2023 07:29:32 -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=-1.4 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (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 07:29:32 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E87CD5C0266 for ; Fri, 12 May 2023 10:29:31 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute4.internal (MEProxy); Fri, 12 May 2023 10:29:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc: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=1683901771; x= 1683988171; bh=kNOxUQ9WizJYSOmLayUV2VtGYdVwYl9Z4F2v56ayyJA=; b=i +KTCtDBl1WoUFTRaxsl+5Ad0ybicM1e6ck3y8DxWeiL1JaQt2JtlAPUQRNJLqFff a/cuxz+/l2pngk6NbyYK3dCgNSk+MaXQlvbh318fBDbHj7nB/y+en54ZT0kmrWtg vyRaXvist/FX3b5pRg5cOJR4vugAO9p21bkvtZfekB9TnSeT1xRgbBIFGqgb6CWP HTeOEIW0kjf0S1zfruYT7lVACAyBa1Gcmrod8kxv4jwzoMt+dajPLIAvr6Q6PH/v 1SqlFAjxwH7XVxQqRz1T8/oRJb9KW8WXYrPXPKGcyew+cfKJvE8gJAEhtIF26vkV QJJnKMYyvZR5dO44DsjWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=1683901771; x=1683988171; bh=kNOxUQ9WizJYS OmLayUV2VtGYdVwYl9Z4F2v56ayyJA=; b=Jnhn/VkPXPtgb5Evc4ZH0iWeW9WQa ZRG+SO7cznZk+1fNdZQQV/CG/pQmJgCbGPZvkyMvH7xfFuvWrYg9ipf0ddC3WXVI 5EixjTuOrtfXP6Elp0Xkivbkm1iDsuNe3k4yBgijr6L46lu2qpQntXJGZ0c4/hrh 6tuCLAYSdn9qtGs0iQU5k9ToIeTbwbtQfMfBF8c3Ijxg0Ag52xxrCTrZMN07U5rm g5Tr1/XhvFIfQtnzwqTvLdGgNCkE7RkjMhOyXPKXux7Wrlc2YJUe7y7lmal20Z4L gFU5IHL6NZ2/1q9xLBgVAg8N+5yNSc57WGMN26PJaGaBK0oe/jylYOGFA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehtddgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeeglefgkeduiedvvdetffeujefftdfhjeeiveehgfff keduveektddvledvvdfffeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8D0B01700089; Fri, 12 May 2023 10:29:31 -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: <897f89d9-9d02-4f15-a81e-a8355d097a5f@app.fastmail.com> In-Reply-To: References: <9ab0173f-a6f2-66f6-3ab3-d5f0c44feb05@bastelstu.be> Date: Fri, 12 May 2023 14:29:10 +0000 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures From: larry@garfieldtech.com ("Larry Garfield") On Fri, May 12, 2023, at 6:52 AM, Rowan Tommins wrote: > I think it's actually very likely that voters would want to express > "deprecate, but do not remove before 10.0". Treating those votes as > "generally in favour, so enough to approve removal in 9.0" doesn't seem > appropriate. > > The other way around - "deprecate, but do not remove later than 9.0" - > seems less likely. I also don't see any reason to delay the deprecation > - the whole point of the longer period is to give people more notice. > > So I would suggest rewording the options slightly: > > a) Deprecate in 8.3, remove in either 9.0 or 10.0 > b) Deprecate in 8.3, remove in 10.0 > c) Do not deprecate > > Now if the votes are a:5, b:4, c:4, we can say: > > - 9 people voted for deprecation in 8.3, vs 4 against > - only 5 voted for removal in 9.0, vs 8 against > - 9 voted for removal in 10.0, vs 4 against > > So we conclude that we should deprecate in 8.3, and remove in 10.0 > > > The suggestion to narrow it down to a yes/no proposal in the discussion > phase is probably even better, though. Personally I'm on team "add new functions now, deprecate old ones in 9, remove old ones in 10." 1. As noted, it gives people a clean window in which to use the old or new ones without getting a deprecation warning, and without cutting off support for old but still supported PHP versions. 2. It gives people ample time to fix their code. (Around 7-8 years.) 3. Perhaps most importantly, it's a good-faith gesture to the people who have objected (validly, if sometimes impolitely and crudely) to shorter deprecation periods in the past. There is definitely a relationship building to be done with the broader user-space community, and offering a very wide grace period is a good way to help with that. That these particular functions and uses are quite rare doesn't really change any of that; if anything it strengthens it, that we're willing to be graceful about it even in cases where we could probably get away with not being so. --Larry Garfield