Re: [PHP-DEV] Alias stdClass to DynamicObject?

2021-09-06 Thread Aran Reeks
Creating a new DynamicObject class which is the preferred alias for stdClass sounds logical but I too share the consern around making it the default anytime soon. Too much code depends on an expected type of stdClass presently which would likely make future upgrades more difficult for no functional

Re: [PHP-DEV] A streaming JSON parser in C

2020-04-29 Thread Aran Reeks
it would be amazing to see something like this introduced into PHP natively in the future. On Wed, 29 Apr 2020, 21:52 Dan Ackroyd, wrote: > On Wed, 29 Apr 2020 at 21:02, Henrik Skov wrote: > > > > Hi internals ! > > > > Recently someone enquired about adding a streaming JSON parser to PHP. > >

Re: [PHP-DEV] Moving json extension to core?

2020-04-29 Thread Aran Reeks
I've no objections to JSON becoming part of PHP's core, it's so commonplace these days I'd welcome it. If JSON were to become a part of core, what would people think about introducing support for a streaming JSON parser? Having worked with many integrations where you simply get shipped a large bl

Re: [PHP-DEV] [DISCUSSION] Native UUID support in PHP

2020-03-16 Thread Aran Reeks
; > On Mar 16, 2020, at 11:06, Aran Reeks wrote: > > > > Hi Internals, > > > > I'd like to open up a discussion around the implementation of a new > > function within PHP for generating a UUID. > > > > Whilst there are libraries out there already for

[PHP-DEV] [DISCUSSION] Native UUID support in PHP

2020-03-16 Thread Aran Reeks
Hi Internals, I'd like to open up a discussion around the implementation of a new function within PHP for generating a UUID. Whilst there are libraries out there already for PHP which can generate a UUID, all of those libraries have the possibility to generate IDs that *could* have a collision.

Re: [PHP-DEV] Typed array properties V2

2020-01-17 Thread Aran Reeks
s://nikic.github.io/2012/03/28/Understanding-PHPs-internal-array-implementation.html Cheers, Aran On Fri, 17 Jan 2020 at 19:17, Mike Schinkel wrote: > > > On Jan 17, 2020, at 2:50 AM, Aran Reeks wrote: > > That said, there's a common use case that keeps me going back to them

[PHP-DEV] Request for RFC karma wiki account

2020-01-17 Thread Aran Reeks
Hi all, After the feedback on 'Typed array properties V2', I'd like to start fleshing out an RFC for which I understand Karma must be granted by @PHP internals Many thanks, Aran

Re: [PHP-DEV] Warn when declaring required parameter after optional one

2020-01-17 Thread Aran Reeks
Hi all, Whilst I totally see the benefits of this, I'm not sure if this is a job for PHP itself, rather a coding standard enforced optionally by something like PHPCS. It's certainly a bad practice, but I'm not sure the benefit will be worth the refactors required. I feel we might be an interestin

[PHP-DEV] Typed array properties V2

2020-01-16 Thread Aran Reeks
Hi Internals, I'd like to kick off a conversation to capture everyone else's thoughts on tweaking / improving typed properties for arrays (for a PHP 8.x release). With all the work done lately to greatly improve the type support in PHP (which is amazing by the way), I'm finding for the most part,

Re: [PHP-DEV] Support for Async / Await

2019-12-23 Thread Aran Reeks
it for data >6. Close socket B > > This would be so much easier if I could just listen on both in a non-IO > blocking fashion. I would find this immensely useful. > > ~Judah > > On Sun, Dec 22, 2019 at 8:59 pm, Aran Reeks wrote: > > Hi Internals, Since the sta

[PHP-DEV] Support for Async / Await

2019-12-22 Thread Aran Reeks
Hi Internals, Since the start of PHP 7, we've seen some amazing performance improvement version by version as a result of core updates. Now some of the biggest wins have been implemented (with JIT due for PHP 8), I'd personally love to see support for Async / Await introduced in PHP's as a core l