Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120657 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 49638 invoked from network); 22 Jun 2023 10:00:24 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Jun 2023 10:00:24 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 97AD7180089 for ; Thu, 22 Jun 2023 03:00:23 -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.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) (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 ; Thu, 22 Jun 2023 03:00:23 -0700 (PDT) Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-1a994308bc6so6356109fac.3 for ; Thu, 22 Jun 2023 03:00:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687428022; x=1690020022; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3B6J/IATU+jAoCM0KCY0RWib68f/b87cS/ELKnpgcAc=; b=UYEU8wA8m0qvnVq3FpeEnraM0lXfqUMb/qmAjW7TcJSt6Yi33K9wvdd7Gb/dNdMxxk JdLk5uV3wWyhLtv4onVBWcBZnQ5L2l0s4lOvLMHY9T8RprR0Fz1yLc+GbypJ+miD9dIg q6mlRnzWkvMla/HljIJ8kKyJHLlebyXkdMparFbuHVq6O5CaFxQg0UCRct54BwpSyMrX QbGMCsmPG0uez4Ukm69yGE+xfVw6tnjrw4hxwAGTMLH3NWADQKeK47z/Xql1NZmzMiS5 AN7vkryHGOJwCK1KRMdQH1RWDQWim+GdlRx/1QhZOrT6Q9VH4iNCf9zaDyYtPchIFmci Ycng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687428022; x=1690020022; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3B6J/IATU+jAoCM0KCY0RWib68f/b87cS/ELKnpgcAc=; b=cg3OK+vO+R0cDokx1qxMIhJ4uF4S3Gfg2bRLZU/g3+9JlA3+S/DM+kkKqXXexSeiKC j3fYJTjlx+YMdL19Irnz2rHp0l7AIw4zea6F2dQWofG+ZvXANENczBU6jGsFFh8EI31c RSrntLal6z5mOruYOYgLhj9Xipr1e5RJwkUqN/j5PTRNgdgLH9aKpH/GuXmGZGi9BNlg nCQ4OS+R447+G5DkKnG7wjzwP+36XXLARkAs0bUEUAzD9c/V4vbimnsIbBsByYy8VuA0 alITLii4Zz1QaC1SKeVTdBWO+CT+9NpuWTpSgFnDFKUKazXDr3fzGo2SWVPXzNEgOfYG CXpg== X-Gm-Message-State: AC+VfDxqxOsMX7bSbMDrfyIhIM37jdODZbwFKoDrICT5BaKXtKQ2Vf86 X0VqKpEVqffKgpsdmUZ2EHevcWQpzpnQ/VYM+DtVmGZLu4pyNQ== X-Google-Smtp-Source: ACHHUZ6xDv2TtinIrK0yJTxuvz6rg1C/sBxDKsa0bsUYesz1aaGtM7mS4+JdxTMV7FVdJ7w3Z8irjV9aB4/eNWgdUu0= X-Received: by 2002:a05:6870:706:b0:1ad:3e11:a291 with SMTP id ea6-20020a056870070600b001ad3e11a291mr172163oab.7.1687428022309; Thu, 22 Jun 2023 03:00:22 -0700 (PDT) MIME-Version: 1.0 References: <108411AD-DBC4-4436-8190-7569B7A0805F@gmail.com> In-Reply-To: Date: Thu, 22 Jun 2023 12:00:09 +0200 Message-ID: To: Rowan Tommins Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000da96fc05feb4f3ce" Subject: Re: Fwd: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --000000000000da96fc05feb4f3ce Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Rowan and Larry, > Isn't that exactly what a deprecation period is for? > Yes, sure, but I wrote my arguments with the "Short deprecation period" in mind so that the removal of these functions causes the least pain. > If we want to give people longer, just leave the functionality deprecated > for longer before removing it. If we want to phase that in gradually, sta= rt > 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. > I don't completely understand this sentence, but my current plan is to go with the original function name as this causes the least impact and at the same time makes the scope of the RFC smaller. I'm tired of the debates (even if they were useful), and I don't want to add any tangentially related things in the RFC anymore. Anyway, adding an alias (session_set_handler()) and/or deprecating the original function name later is trivial, if someone wants to pursue this. > 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 forced to change. That should be ample time for anyone that still needs > to make the switch. I want to keep the original voting choices (the short and long path). Then votes can decide how much notice period they want to give. Since I don't insist on changing the function name anymore, the impact of this change is a lower, as only people using the callback signature would be affected. The fortunate thing is that session handling is used less in library code so at least open source maintainers rarely have to deal with the deprecation. And proprietary code maintainers can mostly ignore or suppress it for a while. Regards, M=C3=A1t=C3=A9 --000000000000da96fc05feb4f3ce--