Re: [PHP-DEV] [PATCH] Implementing array_every() and array_any()

2018-10-22 Thread bugreportuser
On Mon, Oct 22, 2018 at 1:39 AM Levi Morrison wrote: > > On Sun, Oct 21, 2018 at 10:04 PM bugreportuser > wrote: > > > > Hi everyone, > > > > A patch for array_every() and array_any() was abandoned from inactivity, > > so I wrote a new patch for it: > > > > https://github.com/php/php-src/pull/359

[PHP-DEV] Re: [RFC] Improve openssl_random_pseudo_bytes()

2018-10-22 Thread Tom Worster
Hi Sammy, On 22 Oct 2018, at 9:46, Sammy Kaye Powers wrote: What makes the function obsolete? The addition of the `random_bytes()` Yes. What makes the function obsolete? The addition of the `random_bytes()` CSPRNG (which uses the kernel's CSPRNG) doesn't invalidate OpenSSL's CSPRNG. Accor

Re: [PHP-DEV] Composition over inheritance: native support for "delegating" methods?

2018-10-22 Thread Rowan Collins
On 22/10/2018 14:38, Larry Garfield wrote: Sometimes when proxying to an object like that, you're supposed to return $this, but your $this is different than the proxied object's $this. Hm, that's a very interesting limitation. I wonder if there's some way to include common manipulations like

Re: [PHP-DEV] Composition over inheritance: native support for "delegating" methods?

2018-10-22 Thread Rowan Collins
Hi Marco, Thanks for the response. On 21/10/2018 22:42, Marco Pivetta wrote:  * If you need to proxy and add behavior, userland libraries already exist (mostly `doctrine/common` at https://github.com/doctrine/common/tree/a210246d286c77d2b89040f8691ba7b3a713d2c1/lib/Doctrine/Common/Proxy, `go

[PHP-DEV] Re: [RFC] Improve openssl_random_pseudo_bytes()

2018-10-22 Thread Sammy Kaye Powers
Hey Tom! Thanks for the feedback! :) On Sun, Oct 21, 2018 at 8:09 PM Tom Worster wrote: > > At first glance I believed you were proposing that > `openssl_random_pseudo_bytes()` should fail with an exception and that this > would be an improvement. I would agree with that. Yep! If the function

Re: [PHP-DEV] Composition over inheritance: native support for "delegating" methods?

2018-10-22 Thread Larry Garfield
On Sunday, October 21, 2018 12:41:04 PM CDT Rowan Collins wrote: > Hi, > > I've been thinking about how the language could better support > Composition patterns like Decorators and Proxies, using some simple > syntax sugar not dissimilar to Traits. > > > Example problem: > > The other day, I wa

Re: [PHP-DEV] Re: [RFC] [VOTE] Typed properties v2

2018-10-22 Thread Sebastian Bergmann
Am 26.09.2018 um 15:46 schrieb Nikita Popov: I'm pleased to announce that the typed properties RFC has been accepted with 70 votes in favor and one vote against. We will work to finalize and merge the implementation in the next few days. Any update on when this will be merged? Thanks! -- PHP I

Re: [PHP-DEV] [RFC] Preloading

2018-10-22 Thread Florian Anderiasch
On Fri, Oct 19, 2018 at 10:17 AM, Dmitry Stogov wrote: > Hi Internals, > > > I would like to start discussion on a Preloadng RFC > https://wiki.php.net/rfc/preload > This sounds great, but something about the last paragraph: > And also, this approach will not be compatible with servers that

Re: [PHP-DEV] [RFC] Preloading

2018-10-22 Thread Dmitry Stogov
On Oct 20, 2018 11:48 PM, Benjamin Eberlei wrote: Jakub Zelenka mailto:bu...@php.net>> schrieb am Fr. 19. Okt. 2018 um 19:13: On Fri, Oct 19, 2018 at 9:17 AM Dmitry Stogov mailto:dmi...@zend.com>> wrote: > Hi Internals, > > > I would like to start discussion on a Preloadng RFC > https://wik

Re: [PHP-DEV] [RFC] Preloading

2018-10-22 Thread Dmitry Stogov
On Oct 21, 2018 1:29 AM, Rasmus Lerdorf wrote: On Fri, Oct 19, 2018 at 1:17 AM, Dmitry Stogov mailto:dmi...@zend.com>> wrote: I would like to start discussion on a Preloadng RFC https://wiki.php.net/rfc/preload I have been playing with this a bit this weekend. It is tricky to tell if it is w