Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112091 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 59667 invoked from network); 21 Oct 2020 19:32:20 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Oct 2020 19:32:20 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C00F4180502 for ; Wed, 21 Oct 2020 11:49:33 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 21 Oct 2020 11:49:33 -0700 (PDT) Received: by mail-pf1-f181.google.com with SMTP id w21so2019826pfc.7 for ; Wed, 21 Oct 2020 11:49:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=t9KzZ8ujDWtunj/qmtdCWMEsb2ETbP+aLuiJM6bsdns=; b=BJP+yxOv1kTo3xQssfw+raz6ouaG+MDUgG+3PoPb4CiaFOoozth3Xb2plhhTME7+Gw B2L7zDIpbmvVwLTQHcSGHv9FR3V2fg7afk65IlrDzEfCnv5Wtg2ZQuXhH5jpFdzKOmpY vY/SNslztumr310Vfxml/VaFl6m8xOjhhuku3zRpFiwNmo22VzAKMjaJz2SVCs8R9Lm7 /+d3FJWl8Uf5Gt6XeSwCv/k6V01e86IFSHfrERnngj6fRSX2lnQJ1cWNj3ZkvgoD1ale OUSzV7AzaSxd59NlNCoiFpza8d1dPnN8nVDCmKmc9tPfcBL3z4GfG6ZrdUCNb8Azn4eh YKyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=t9KzZ8ujDWtunj/qmtdCWMEsb2ETbP+aLuiJM6bsdns=; b=qMnyAd6M2QhjNX+u50IdcOybJRdv2ay1MPnPnulP6rZOqcWtjMlpAteVT+pSqnOs// JqpNDjroRi6noKB9Ww5Wp34vs0fp8+Yjr3uuaV9vvJjLLWVW0jrMhulwGKUWjn+YhArV OR1o60BUz/MtWE97/8po8AsPC+vA2n/8Hpfw9lk33u81xWbCeHzoWFBfAKQ1k2bJS7a4 i5h3n5/urhveqtoKDou3+gH36GAGwXp8vFHGCUmlVlk25ws3KZTLnAy4NZWZK5a7q3j4 GFkhWdQPJy0+AcByB2sv590u2yeJ+UGSeGdvDtP3BcYSK7eWDAT48tsOjtnfTqG+gnvA 6Ewg== X-Gm-Message-State: AOAM531jz1JHWrHXDOsgafr2MfjUPbtijJLQVQp/3nke6LrM8ld3AT63 +f2TVnI0HdfYteUQHrBjFIg73VoimWcsDhzXS/FCLAYNHAQ= X-Google-Smtp-Source: ABdhPJwQOyOjlZU4+jdG+NnPPjHQ67YIYSsLp+cmad/xq2Sh2+7XeIXi+MhuxRpsWaMRji504IuoOHUMubUSbjaWPeI= X-Received: by 2002:a63:4d0f:: with SMTP id a15mr4506426pgb.250.1603306169358; Wed, 21 Oct 2020 11:49:29 -0700 (PDT) MIME-Version: 1.0 References: <4267ea59-e9fa-1231-7f4b-46d1204eb291@gmx.de> In-Reply-To: Date: Wed, 21 Oct 2020 20:49:16 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Re: want an Object-oriented interface for HashContext From: divinity76@gmail.com (Hans Henrik Bergan) @Rowan Tommins >I think I'd prefer to drop the fluent interface (returning void on most > things, and relevant values on others) well both approaches has pros and cons, that said, the sample implementation Sara posted returns $this, if you (or anyone) feels strongly about it one way or the other, i guess the php devs can vote on it @Sara Golemon thanks! (and you're the original pecl hash author, neat) given the "PHP8 release manager" thing, i guess you have a lot of other PHP8 stuff to focus on right now > Happy to co-author an RFC with you if you'd like to get involved directly, or I can just pick up the ball and run with it if you'd rather make the feature request then step back. stepping back sounds good to me, i have no idea how to do any of that stuff ^^ > No reply from Hans, so I've thrown together an implementation and will attach an RFC to it in the coming days. > https://github.com/php/php-src/pull/6347 looks great to me, and you even took care of the hash_update_stream return value issue ^^ On Sat, 17 Oct 2020 at 04:52, Sara Golemon wrote: > > On Tue, Oct 13, 2020 at 12:04 PM Sara Golemon wrote: >> >> On Tue, Oct 13, 2020 at 11:42 AM Christoph M. Becker wrote: >>> >>> >>> > Happy to co-author an RFC with you if you'd like to get involved directly, >>> > or I can just pick up the ball and run with it if you'd rather make the >>> > feature request then step back. >>> >>> Please go with this, if you like. Note that I didn't make the feature >>> request; I just support it. :) >>> >> >> Sorry for confusion. That part of my reply was aimed at Hans, but I didn't have his original message in my thread to reply to. :p >> > > No reply from Hans, so I've thrown together an implementation and will attach an RFC to it in the coming days. > https://github.com/php/php-src/pull/6347 > > -Sara