Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120562 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 52214 invoked from network); 13 Jun 2023 14:50:06 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 13 Jun 2023 14:50:06 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 39F65180545 for ; Tue, 13 Jun 2023 07:50:06 -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_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-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) (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 ; Tue, 13 Jun 2023 07:50:05 -0700 (PDT) Received: by mail-oi1-f182.google.com with SMTP id 5614622812f47-39c7f78c237so3547494b6e.3 for ; Tue, 13 Jun 2023 07:50:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686667805; x=1689259805; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/++irexe4+F8h8spknOIc0KeerF5scmK8ZxQmcm62nM=; b=jlEA1P74ILduFhu56gHRTRasKUXejpnrzcarjlmy2+8B1evrIzEKCj3W/fQs2Hd4ks WaDyx+S1F9zKBrkjbvhiY8J8z8idapO9RSW4FuJ8BK1XiXcWBKG2cz1ISYSxOSmb3fjS fTub3iykHN7rMwyYcdly7c/2O5KBiUIxWJCdyhkw7mZhVG8GTWYQ8zYcPuc49VI6RWDq EWPo23Ioldsz11Qx+XcL/fFOWs5WUQM4nBPZx+3Pk++UEf/f3HMg5712K4caepKARF1S jOkcOnpcEKr0qi8f6mUrHGoU1cFKPnIlhOcU2VUv1VRpaZ7jAVLaje2b8bdrkpF8P01k DgQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686667805; x=1689259805; 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=/++irexe4+F8h8spknOIc0KeerF5scmK8ZxQmcm62nM=; b=OkHmala3E7YEYbYwvsdHD7xxy0byWVIcCpuAmvbqbH5iXEWYa+Op3DMNIaCEv0z90E 3fQAWLND3xSqh4a6hwrnkiQOJfvsEkGHEGty6sN7Itot/yLLdq8lSA+gNwW0QgzucjUk QixVqUo6QBzEg/PqJJeVWqhVShTUAFsLVMlh5t10GRlKfVQZWG22dydqSRu9ddORBgJ+ JeoNUVZ7n0ZtpqDipd0tOP9b4eNipX+eSpBBE37cZqqnGfa9civTrpvWY265dZuM9YC7 XiMsvH9GqMlffjx5LwJDMlUazchSvmns0/qYACKaVlfRvm0IBfchSeDvrONYAaZkXKsI Elmw== X-Gm-Message-State: AC+VfDxYn911XjOM0OMD+XkL1tfg4616bejI4ysp1XzjSdQDoJPQE8qp S6X7xcRnsiPo3ScPwiU2H0dwxjMcaXImH9sTW6M= X-Google-Smtp-Source: ACHHUZ7Rtbb2abCY/90vweHioLiB1eXdGBpvUpdLpEmBlsTFd2N2XRIiVQHSBKRGP4M3nmnDYlPxXs+Czmsm6dOzgnU= X-Received: by 2002:a05:6808:1596:b0:398:7db6:7ee3 with SMTP id t22-20020a056808159600b003987db67ee3mr9151740oiw.19.1686667805052; Tue, 13 Jun 2023 07:50:05 -0700 (PDT) MIME-Version: 1.0 References: <108411AD-DBC4-4436-8190-7569B7A0805F@gmail.com> In-Reply-To: Date: Tue, 13 Jun 2023 16:49:53 +0200 Message-ID: To: Rowan Tommins Cc: PHP Internals List Content-Type: multipart/alternative; boundary="0000000000005fd1f405fe03f34a" Subject: Re: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --0000000000005fd1f405fe03f34a Content-Type: text/plain; charset="UTF-8" > > 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. > Yes, that's the case! Thanks for reminding me again, I clarified in the RFC that PHP 8.2 is the first version which supports the preferred signature. > 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. > Normally, I wouldn't do this, but I'm certain that deprecating this signature won't cause a big havoc in the PHP ecosystem, so that's the only reason I went ahead. > --0000000000005fd1f405fe03f34a--