Re: [PHP-DEV] Re: want an Object-oriented interface for HashContext

2020-10-13 Thread Hans Henrik Bergan
i know this is unrelated to the thread at hand, but am i really supposed to find the email of everyone who has replied to a thread, and add them all manually to cc? (or is it sufficient to just send it to intern...@list.php.net ? ) (also funfact, it seems if you regex the innerHTML after opening an

Re: [PHP-DEV] Re: want an Object-oriented interface for HashContext

2020-10-13 Thread Rowan Tommins
On Tue, 13 Oct 2020 at 10:43, Hans Henrik Bergan wrote: > i know this is unrelated to the thread at hand, but am i really > supposed to find the email of everyone who has replied to a thread, > and add them all manually to cc? > Nope, just the mailing list address should be fine; everyone sendi

Re: [PHP-DEV] Re: want an Object-oriented interface for HashContext

2020-10-13 Thread Hans Henrik Bergan
PS there might be some good reason for the hash_final() api really being final that i'm not aware of (not that i'm aware of any reason at all, pun not intended) also the sample class in the 3v4l link has an issue i hadn't thought of: i wanted to support method chaining, so i made nearly everything

Re: [PHP-DEV] Re: want an Object-oriented interface for HashContext

2020-10-13 Thread Rowan Tommins
On Tue, 13 Oct 2020 at 16:33, Hans Henrik Bergan wrote: > also the sample class in the 3v4l link has an issue i hadn't thought > of: i wanted to support method chaining, so i made nearly everything > return `:self` , but hash_update_stream() returns int, the number of > bytes actually read from t

Re: [PHP-DEV] Re: want an Object-oriented interface for HashContext

2020-10-13 Thread Sara Golemon
On Mon, Oct 12, 2020 at 7:55 AM Christoph M. Becker wrote: > > On 12.10.2020 at 13:49, Hans Henrik Bergan wrote: > > > something like > > > > $result = (new HashContext("SHA1"))->update($str1)->update($str2)->final(); > > > > (userland sample imp: https://3v4l.org/lXd3u ) > > > > I tried asking on

Re: [PHP-DEV] PHP 8 release announcement page on php.net

2020-10-13 Thread Benjamin Eberlei
Hi Roman, On Mon, Oct 12, 2020 at 9:57 AM Roman Pronskiy wrote: > Hello Internals, > > The PHP 8 release is going to be huge, and in some sense, you could > say it's a whole new language. There is a feeling that more can be > done to promote it more extensively. > > Usually for releases, there’s

Re: [PHP-DEV] Re: want an Object-oriented interface for HashContext

2020-10-13 Thread Christoph M. Becker
On 13.10.2020 at 18:01, Sara Golemon wrote: > On Mon, Oct 12, 2020 at 7:55 AM Christoph M. Becker > wrote: >> >> On 12.10.2020 at 13:49, Hans Henrik Bergan wrote: >> >>> something like >>> >>> $result = (new > HashContext("SHA1"))->update($str1)->update($str2)->final(); >>> >>> (userland sample i

Re: [PHP-DEV] PHP 8 release announcement page on php.net

2020-10-13 Thread Máté Kocsis
Hi Roman, I 100% agree with what Benjamin has just written. Marketing PHP as a modern, thriving programming language which (mostly) left its dark past behind is very much needed. That said, I'm very grateful for this idea, so thank you! I like the design as well: it's informative, looks clean, an

Re: [PHP-DEV] Re: want an Object-oriented interface for HashContext

2020-10-13 Thread Sara Golemon
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. Not

Re: [PHP-DEV] PHP 8 release announcement page on php.net

2020-10-13 Thread Roman Pronskiy
Agree, this should be for every release. So with this concept, we can start from PHP 8.0, see how it works, and then reuse the template for subsequent releases. On Mon, Oct 12, 2020 at 12:54 PM Rowan Tommins wrote: > > On Mon, 12 Oct 2020 at 08:57, Roman Pronskiy > wrote: > > > The PHP 8 release

Re: [PHP-DEV] PHP 8 release announcement page on php.net

2020-10-13 Thread tyson andre
Hi internals, > As far as php.net can help with PHP's reputation, I think a brief homepage > intro that showcased some modern-looking PHP code would be great (e.g. > typescriptlang.org, golang.org). The docs design could also be > slightly tweaked to make everything seem newer, while still keeping

Re: [PHP-DEV] PHP 8 release announcement page on php.net

2020-10-13 Thread Larry Garfield
On Tue, Oct 13, 2020, at 6:56 PM, tyson andre wrote: > Hi internals, > > > As far as php.net can help with PHP's reputation, I think a brief homepage > > intro that showcased some modern-looking PHP code would be great (e.g. > > typescriptlang.org, golang.org). The docs design could also be > > sl