Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120557 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 73595 invoked from network); 12 Jun 2023 15:07:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Jun 2023 15:07:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 08433180511 for ; Mon, 12 Jun 2023 08:07:28 -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-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 ; Mon, 12 Jun 2023 08:07:27 -0700 (PDT) Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-30e412a852dso2956579f8f.0 for ; Mon, 12 Jun 2023 08:07:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686582446; x=1689174446; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zaX4b/6OoGiYhZqnHvu1g9p76mnzwLmrlo2X9no8FX0=; b=R1VnDrrMQg5+q7Dl5RI/VkdC4qF83fFWkOlsxRtKL3koSdnwjyzqHu2vOUck99+/OC BKinzEj5/TKCxazHLJ7SeQ75A78KWNeRsfQs9/VMuBR2NKTqrKov0/8F0GFeYKbgHASg V+oJN7SGe9tbtIIeumi3hPAP/vcbF2E+EmJL6xCTBQYZHJRGt8zEmMoYUuFJZdy1yhUB oO8SaaJ3nZ70INntbTNkAQ5eWx0JKh6qyomNP3Ye5xFyMC4DX6CRzBBl5IH/v8JXf7AS T8GVijuNHYbHsQ5HgZ+MfKdVUZWZa7RkkZu+3NcODX/OULmXmdMzmWqmFm1sWDNdcRTV 5XZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686582446; x=1689174446; 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=zaX4b/6OoGiYhZqnHvu1g9p76mnzwLmrlo2X9no8FX0=; b=M4Pu78zaMYO+TIVqaA37bzlLWbvJckCE7XQakRWprCITnXBsy8DPb9GsARJgshQVqN ZL2uevzNxxFUShOrUjAFiiPskLRTsOziCaNYg+sCfVKwcuvbnsEOyS7nbn8g543OMfKr 8iVZ5JER6+tBxCTVchQGUzR1fEmTjvmMuteWrhJoYoD8F8oCyhx40PGIovZhdZYr9AmU JjZIkfljYrAX7+VXhukD10CJUEPeoqNuBoGYmeazcpAZu2M3PQ9007s/p3jjCmK/rRwO 3RqZzDTCvGFutn316b+TpA2ZYycpSlR0xA5aaifEyP/l89AetZM97ztac/GGS68j82zm yWUg== X-Gm-Message-State: AC+VfDxypMSGcmSaca/ycyTxn1Jo1wzMxHzp4gpehXb2XJ+irKJNMfym mdM6i3BhZreWyqR3ijhXsUw1/c68qm3fDHVCw1I= X-Google-Smtp-Source: ACHHUZ6m6tvR7vjwQ1Q9Rsu5qgbIrufxAkd1fis/Qns34gFh5YZtwaXwv2rMwTvE1F4KZ/yPCURQvKYRegLcmmro9+Y= X-Received: by 2002:a05:6000:1951:b0:30d:7c09:b677 with SMTP id e17-20020a056000195100b0030d7c09b677mr3778896wry.39.1686582445929; Mon, 12 Jun 2023 08:07:25 -0700 (PDT) MIME-Version: 1.0 References: <108411AD-DBC4-4436-8190-7569B7A0805F@gmail.com> In-Reply-To: Date: Mon, 12 Jun 2023 16:07:13 +0100 Message-ID: To: =?UTF-8?B?TcOhdMOpIEtvY3Npcw==?= Cc: PHP Internals List Content-Type: multipart/alternative; boundary="00000000000092f88805fdf0139f" Subject: Re: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures From: rowan.collins@gmail.com (Rowan Tommins) --00000000000092f88805fdf0139f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 10 Jun 2023 at 08:40, M=C3=A1t=C3=A9 Kocsis wrote: > In the meanwhile, I noticed yet another overloaded function (dba_fetch()) > and I included it into the proposal. In my opinion, it's a no-brainer > to deprecate due to its low adoption rate and very odd behavior - to say = at > least. > It looks like the current preferred signature was only introduced in PHP 8.2. Previously, the signatures were dba_fetch($key, $handle) and dba_fetch($key, $skip, $handle) - it effectively had a non-final optional parameter. Whether that makes it too early to deprecate the older 3-parameter form, I'm not sure. As you say, it's probably pretty rare, particularly because according to the docs that parameter is ignored for most file formats the function supports anyway. Regards, --=20 Rowan Tommins [IMSoP] --00000000000092f88805fdf0139f--