Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120575 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 44955 invoked from network); 14 Jun 2023 14:04:40 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Jun 2023 14:04:40 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 37A711804BE for ; Wed, 14 Jun 2023 07:04:40 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, 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-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 ; Wed, 14 Jun 2023 07:04:39 -0700 (PDT) Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-3f736e0c9a8so5762575e9.2 for ; Wed, 14 Jun 2023 07:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686751478; x=1689343478; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=3lb7aS50bRE2Sl8EjNGsaATjTecq/E4MiJMNq4ANq/E=; b=eVdDhdC7l9hbSfWYQggVZsH3SNtuJZSvyHgyxHiYxEx/wzUENfnuW3xXOoq4bIV3Ik NnI80sOOOMK9uuvL1W+Zfs5yd6sqOFHiC4w/aDLoXvL/cQdGyTLAP+e9oeKQ6OW79mr0 fN4NW9/uMfvl+tNvn0NkmjgnfsurnKdCx4bhq/IzUU0fIhhORuSm0KG/214NdORfFuas aJD3YmSgruENco0XCkmZVGyULElRfdufwSaweJMOf8wy6rWhu8gZb7vN5+SwZLoZ5AYA NGEOH22GKJmvjCaqn+VBo65yhwDGArxCYQzETfYD20ALMAkxnu2Rf93ZIAOv/OkowpTW /d0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686751478; x=1689343478; h=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=3lb7aS50bRE2Sl8EjNGsaATjTecq/E4MiJMNq4ANq/E=; b=FL+dsET7XXukGJXScV68AM6sRWyghCM4JiJfX5wlYHy6JDQ2kauqJHDdGTkkcnWQE/ k1hgLO9nAcqgLsbfoS7KDvHlBGKDjfrKxrb0pTwBPF8/tqSMmA5xex43G7FfVoCHpGMm iAwVdp/FSfJgJiM0/aWYhidtTgeA+Nmwd7FYqGgQktvWASTDfYNUPezfCLylrQ93JYi6 21L8XujcpW4f54jtPRs4mpbkwb7ETFARAJhUmp/t+T7O0t2KXxGF+hFseTenBKPZ/HAL LxClOmigEtimnDEpvLX9xW5li4RYo20C4XSjTh/PgWwHFC/9t9Yc17FnA79qWMY3r7vJ 9zEA== X-Gm-Message-State: AC+VfDzzXWbqnOeGpGbuUwDeo+tnIOfYchjhLcGajnhY8uexz0zsFRDD vfVZqUVxwj6IDHkoshH9f3W2b/8yUshc+9soVPK4lCjPkng= X-Google-Smtp-Source: ACHHUZ5Ed57JvXtUa4Z0GLGffVWiWbKnI0dda6oSaxJL0k0DDZbf9fuh1tWYSgwG59aoQqQ7js4dSfiR6qARO//3hg4= X-Received: by 2002:a5d:65d1:0:b0:30e:4886:3533 with SMTP id e17-20020a5d65d1000000b0030e48863533mr7309998wrw.34.1686751478158; Wed, 14 Jun 2023 07:04:38 -0700 (PDT) MIME-Version: 1.0 References: <108411AD-DBC4-4436-8190-7569B7A0805F@gmail.com> In-Reply-To: Date: Wed, 14 Jun 2023 15:04:25 +0100 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000ae333605fe176eed" Subject: Re: Fwd: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures From: rowan.collins@gmail.com (Rowan Tommins) --000000000000ae333605fe176eed Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 13 Jun 2023 at 15:49, M=C3=A1t=C3=A9 Kocsis wrote: > I understand that communication is much simpler with your suggested > approach, however, deprecating something which everyone surely uses partl= y > undermines the efforts we have made for ensuring as much backward > compatibility as reasonably possible. > Given that you've agreed that neither signature is "primary" or "better", doesn't that argument apply equally to both signatures? If it's OK to force anyone using individual callbacks to change their code, why is it not equally OK to force anyone using an object to change their code? I do wonder if this change is too disruptive relative to the benefit it brings, but in that case, we should just leave the whole function as it is. > In my opinion, the "_object" suffix is superfluous. There would be two > session_set_handler*() functions: the first one accepts a session handler > (instance) (session_set_handler()) and the second one accepts session > handler callbacks (session_set_handler_callbacks()). They are not primary > or secondary, I just don't like the "_object" suffix, and I couldn't come > up with a better alternative. > I don't think "handler" particularly implies "object". The "handler" passed to set_error_handler is a function, and your original suggestion for a new function was "session_set_save_handlers", where "handler" would also mean "function". My interpretation of the names is that both versions of the function "set a session handler", but they differ in what type of handler - one "sets a session handler using function callbacks", the other "sets a session handler using an object instance". Thus, the first is "session_set_handler_functions" or "session_set_handler_callbacks" or so, and the second is "session_set_handler_object" or "session_set_handler_instance" or so. Without any suffix at all, it seems like "set a session handler the normal way" vs "set a session a special different way"; like how "array_merge_recursive" is a special version of "array_merge". Regards, --=20 Rowan Tommins [IMSoP] --000000000000ae333605fe176eed--