Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120556 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 20881 invoked from network); 11 Jun 2023 21:15:34 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Jun 2023 21:15:34 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 41CAA180511 for ; Sun, 11 Jun 2023 14:15:34 -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=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 ; Sun, 11 Jun 2023 14:15:33 -0700 (PDT) Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-30fb7be435dso574890f8f.1 for ; Sun, 11 Jun 2023 14:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686518132; x=1689110132; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=xRMDogTT+PrHmdpL5pYatfjzEdeVMwY5XLnILPCM5ec=; b=V0viuCMcX8PkMa3IyBYFtWUOZtS9kS9v9csX626bZDVLF4HnjBu2StYxRH3j7JDRKN aS3MKoDqI17Y75ClpA3pAmOFHLmiu1J06UJ2N0+Aa6Xd7etTwjwO35q89HnM3hHXr33j tcBX5h7R3MLlo/BUzK0kDp4cdc3GPPz4xTWv24K7Nt6vd4lpGHIHuHymj/JgosGNxF0H ZxG8fv86CTxfEz1kzzU89oxcfjLB6id2Fb3HEPf4kGnf/3Z2a7P9GM/VCqdgA/aY+9Gx 5STJXkAEkLJq2NNXjtHHFQ5T+RUvUcPnKPRhIiktQXnOeyNDbdMOCfd4KdVegQS3aI4d T8Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686518132; x=1689110132; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=xRMDogTT+PrHmdpL5pYatfjzEdeVMwY5XLnILPCM5ec=; b=XJvDMSm7FKNFp/oVhszteVNh32iLlVLSpwslw8jK78qaLdoIcDRDYwzB4so4gB6gF1 Y33N2C5zTY8bpO2i5v//mlhzgo4heKXH/hstpjNmbZf7GAM30Ks8hKVz6KX7pcMy6LGb arQU82piCW8FK4ejuMfFPFsAVEPXgRkfBK2bedMWiC5lmYRbSIM8PAWJPBKs2OjfWcjZ 2rvjGld6HvyzlyndCBinv+8orgMOWamH6AE1LpfVK9uztU0JVNZsxeSi2j2UmKH1xoIf tuswXQVCiy/0Xoy0/f6RbZrfjlUWS20FX3V7WxwRzD/UKFtQeI+ipnfh+IhGYVYx9gPT 20dg== X-Gm-Message-State: AC+VfDyxHQQKNUkoe3KQJQPkpDp8Ps273H9pArsRxBBZyDrrabifBhGM lxqlTuTepOkDYXEvBo6n47o= X-Google-Smtp-Source: ACHHUZ63rxnWafkY3+FJWgg6Ns+Z2OaB8RM1zjpQM0NAfpVjMYQc7JH10AHs8sIXyDSFJ5sx9+zonA== X-Received: by 2002:adf:f0d0:0:b0:30f:af19:81f3 with SMTP id x16-20020adff0d0000000b0030faf1981f3mr3051678wro.41.1686518132205; Sun, 11 Jun 2023 14:15:32 -0700 (PDT) Received: from [127.0.0.1] (cpc83311-brig21-2-0-cust191.3-3.cable.virginm.net. [86.20.40.192]) by smtp.gmail.com with ESMTPSA id v17-20020adfedd1000000b0030630de6fbdsm10482354wro.13.2023.06.11.14.15.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 11 Jun 2023 14:15:31 -0700 (PDT) Date: Sun, 11 Jun 2023 22:15:29 +0100 To: =?ISO-8859-1?Q?M=E1t=E9_Kocsis?= , internals@lists.php.net User-Agent: K-9 Mail for Android In-Reply-To: References: <108411AD-DBC4-4436-8190-7569B7A0805F@gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: =?US-ASCII?Q?Re=3A_Fwd=3A_=5BPHP-DEV=5D_=5BRFC=5D_=5BDiscussion=5D_Depr?= =?US-ASCII?Q?ecate_functions_with_overloaded_signatures?= From: rowan.collins@gmail.com (Rowan Tommins) On 10 June 2023 08:31:24 BST, "M=C3=A1t=C3=A9 Kocsis" wrote: >Hmm, that's also a very good idea, and I support this=2E However, I'm >hesitant to deprecate the 2 parameter version of session_set_save_handler= () >just yet, >since doing so would mean that everyone using sessions has to use a new >function=2E=2E=2E Instead, I opted for aliasing it to the new >session_set_handler() function (I'm not fond >of the "_object" postfix, because I regard it unnecessary as it operates = on >SessionHandlerInterface instances)=2E And we could maybe deprecate >session_set_save_handler() >altogether in a few years=2E Hm, I think we're not quite on the same page here=2E In my mind, the only = reason to change anything about this function is that we can't properly ove= rload a function based on its argument types=2E There's nothing particularl= y "primary" or "better" about either of the two signatures, it's just hard = to document and use named parameters while they're both part of one functio= n=2E My suggestion was very explicitly that everyone using sessions should have= to change their code, to a name that explicitly mentions the parameter typ= e in its name (because that's the difference between the two)=2E As I said,= I think it's much simpler to communicate "this function is deprecated, cho= ose the appropriate from these two names", rather than "this function is de= precated in one format, but not the other, and if you are using the depreca= ted format, you can use this instead"=2E Both the "_object" suffix (or some equivalent) and deprecating the origina= l regardless of signature are inherent in my suggestion=2E You seem to have= interpreted it as something else, and I'm not entirely sure what you're ac= tually proposing - how does an alias fit in to something that's about split= ting a function into two? Regards, --=20 Rowan Tommins [IMSoP]