Re: [PHP-DEV] RFC [Discussion]: array_find

2024-04-23 Thread Joshua Rüsweg
Hi On 23.04.24 22:22, Levi Morrison wrote: The RFC looks better to me. The [Unaffected PHP Functionality][1] section looks like it needs updating, though: This RFC only adds two new functions and an enum to PHP and only affects previously defined functions which are named as the proposed

Re: [PHP-DEV] RFC [Discussion]: array_find

2024-04-23 Thread Levi Morrison
On Tue, Apr 23, 2024 at 1:53 PM Joshua Rüsweg wrote: > > Hi > > On 19.04.24 21:20, Joshua Rüsweg wrote: > > I definitely see the point where there is an advantage to having two > > separate methods and can definitely understand that it is easier for > > developers to understand the control flow

Re: [PHP-DEV] RFC [Discussion]: array_find

2024-04-23 Thread Joshua Rüsweg
Hi On 19.04.24 21:20, Joshua Rüsweg wrote: I definitely see the point where there is an advantage to having two separate methods and can definitely understand that it is easier for developers to understand the control flow without evaluating the parameters. I'm unsure if that's really

Re: [PHP-DEV] [RFC] [Discussion] Add openStream() to XML{Reader,Writer}

2024-04-23 Thread Niels Dossche
On 22/04/2024 21:53, Larry Garfield wrote: > On Mon, Apr 22, 2024, at 6:41 PM, Niels Dossche wrote: >> Hi internals >> >> I'm opening the discussion for my RFC "Add openStream() to >> XML{Reader,Writer}". >> RFC link: https://wiki.php.net/rfc/xmlreader_writer_streams >> >> Kind regards >> Niels >

Re: [PHP-DEV] RFC [Discussion]: array_find

2024-04-23 Thread Joshua Rüsweg
Hi On 19.04.24 23:17, Tim Düsterhus wrote: On 4/19/24 22:08, Larry Garfield wrote: There's another issue, though: Will the callback always be given both $value and $key? The current implementation always passes both, which, as I just learned, is inconsistent with `array_filter` which has

Re: [PHP-DEV] [RFC] [Discussion] #[\Deprecated] attribute again v1.3

2024-04-23 Thread Levi Morrison
On Tue, Apr 23, 2024 at 7:30 AM Benjamin Außenhofer wrote: > > Hi internals, > > My PR for #[\Deprecated] attribute was in hibernation for a long while now > and after some off-list discussion a few weeks ago I have decided to revisit > it and asked Tim to help me out with the work. > > Tim has

Re: [PHP-DEV] [RFC] [Vote] Deprecate GET/POST sessions

2024-04-23 Thread Kamil Tekiela
Hi All, The voting has ended. RFC was accepted unanimously with 29 votes. Regards, Kamil

Re: [PHP-DEV] [RFC][Discussion] PDO driver specific parsers

2024-04-23 Thread Matteo Beccati
Hi Saki, internals, Il 17/04/2024 16:30, Saki Takamachi ha scritto: Hi Matteo, Thanks for the feedback. I will reference this issue as duplicate too in the RFC. Thanks for the reference to the issue. I'm certain if we dig deep enough we'll find a few more. Agree. Maybe we can find

Re: [PHP-DEV] PDO subclass names

2024-04-23 Thread Robert Landers
On Tue, Apr 23, 2024 at 3:22 PM Stephen Reay wrote: > > > Sent from my iPhone > > > On 23 Apr 2024, at 22:35, Bilge wrote: > > On 23/04/2024 10:25, Stephen Reay wrote: > >> The argument that "Client" is meaningless becomes pretty moot when you > >> realise that you can import a *namespace* and

Re: [PHP-DEV] PDO subclass names

2024-04-23 Thread Arvids Godjuks
A thought crossed my mind, considering that MariaDB and MySQL are drifting more and more apart with features and nuances of how they work, would it be a good idea to create an alias to MySQL PDO driver under MariaDB name so we can create a MariaDB specific implementation down the road and so

Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-04-23 Thread Alexandru Pătrănescu
On Tue, Apr 23, 2024 at 3:31 PM Robert Landers wrote: > On Tue, Apr 23, 2024 at 11:10 AM Valentin Udaltsov > wrote: > > > > > > Does anyone have additional feedback? I'd like to start voting on > Thursday, April 25th. > > I've also added a section on other syntax ideas that have been expressed

[PHP-DEV] [RFC] [Discussion] #[\Deprecated] attribute again v1.3

2024-04-23 Thread Benjamin Außenhofer
Hi internals, My PR for #[\Deprecated] attribute was in hibernation for a long while now and after some off-list discussion a few weeks ago I have decided to revisit it and asked Tim to help me out with the work. Tim has cleaned up the PR quite a bit and also worked in additional features such

Re: [PHP-DEV] PDO subclass names

2024-04-23 Thread Stephen Reay
 Sent from my iPhone > On 23 Apr 2024, at 22:35, Bilge wrote: > On 23/04/2024 10:25, Stephen Reay wrote: >> The argument that "Client" is meaningless becomes pretty moot when you >> realise that you can import a *namespace* and use it relatively, if you so >> wish: >> ``` >> import

Re: [PHP-DEV] PDO subclass names

2024-04-23 Thread Stephen Reay
Sent from my iPhone > On 23 Apr 2024, at 22:35, Bilge wrote: > On 23/04/2024 10:25, Stephen Reay wrote: >> The argument that "Client" is meaningless becomes pretty moot when you >> realise that you can import a *namespace* and use it relatively, if you so >> wish: >> >> ``` >> import

Re: [PHP-DEV] PDO subclass names

2024-04-23 Thread Bilge
On 23/04/2024 10:25, Stephen Reay wrote: The argument that "Client" is meaningless becomes pretty moot when you realise that you can import a *namespace* and use it relatively, if you so wish: ``` import MyLib\HTTP; $a = new HTTP\Client(...); ``` Hi Stephen, Granted, but I also believe

Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-04-23 Thread Lynn
On Tue, Apr 23, 2024 at 1:20 PM Robert Landers wrote: > On Tue, Apr 23, 2024 at 11:10 AM Valentin Udaltsov > wrote: > > > > вт, 9 апр. 2024 г. в 19:41, Larry Garfield : > >> > >> On Mon, Apr 8, 2024, at 6:08 AM, Valentin Udaltsov wrote: > >> > Hello internals, > >> > > >> > > >> > > >> > I

Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-04-23 Thread Robert Landers
On Tue, Apr 23, 2024 at 11:10 AM Valentin Udaltsov wrote: > > вт, 9 апр. 2024 г. в 19:41, Larry Garfield : >> >> On Mon, Apr 8, 2024, at 6:08 AM, Valentin Udaltsov wrote: >> > Hello internals, >> > >> > >> > >> > I would like to propose a syntax change for PHP 8.4 that allows to >> > immediately

Re: [PHP-DEV] PDO subclass names

2024-04-23 Thread Stephen Reay
Sent from my iPhoneOn 23 Apr 2024, at 19:26, Lynn wrote:On Tue, Apr 23, 2024 at 11:26 AM Stephen Reay wrote:Sent from my iPhoneOn 23 Apr 2024, at 18:21, Lynn wrote:On Tue, Apr 23, 2024 at 10:21 AM Bilge wrote:On 21/04/2024

Re: [PHP-DEV] PDO subclass names

2024-04-23 Thread Saki Takamachi
Hi all,On Tue, Apr 23, 2024 at 11:26 AM Stephen Reay wrote:Sent from my iPhoneOn 23 Apr 2024, at 18:21, Lynn wrote:On Tue, Apr 23, 2024 at 10:21 AM Bilge wrote:On 21/04/2024 14:00, Saki Takamachi wrote: > Hi internals, > >

Re: [PHP-DEV] PDO subclass names

2024-04-23 Thread Lynn
On Tue, Apr 23, 2024 at 11:26 AM Stephen Reay wrote: > > Sent from my iPhone > > On 23 Apr 2024, at 18:21, Lynn wrote: > >  > > > On Tue, Apr 23, 2024 at 10:21 AM Bilge wrote: > >> On 21/04/2024 14:00, Saki Takamachi wrote: >> > Hi internals, >> > >> > Recently I've been working on an RFC

Re: [PHP-DEV] PDO subclass names

2024-04-23 Thread Stephen Reay
Sent from my iPhoneOn 23 Apr 2024, at 18:21, Lynn wrote:On Tue, Apr 23, 2024 at 10:21 AM Bilge wrote:On 21/04/2024 14:00, Saki Takamachi wrote: > Hi internals, > > Recently I've been working on an RFC regarding object support for BCMath. While working on that, I learned

Re: [PHP-DEV] [RFC] [Discussion] new MyClass()->method() without parentheses

2024-04-23 Thread Valentin Udaltsov
вт, 9 апр. 2024 г. в 19:41, Larry Garfield : > On Mon, Apr 8, 2024, at 6:08 AM, Valentin Udaltsov wrote: > > Hello internals, > > > > > > > > I would like to propose a syntax change for PHP 8.4 that allows to > > immediately access instantiated objects without wrapping the expression > > into

Re: [PHP-DEV] PDO subclass names

2024-04-23 Thread Lynn
On Tue, Apr 23, 2024 at 10:21 AM Bilge wrote: > On 21/04/2024 14:00, Saki Takamachi wrote: > > Hi internals, > > > > Recently I've been working on an RFC regarding object support for > BCMath. While working on that, I learned of the following RFC: > >

Re: [PHP-DEV] PDO subclass names

2024-04-23 Thread Bilge
On 21/04/2024 14:00, Saki Takamachi wrote: Hi internals, Recently I've been working on an RFC regarding object support for BCMath. While working on that, I learned of the following RFC: https://wiki.php.net/rfc/namespaces_in_bundled_extensions If we follow this RFC, is it reasonable to place

Re: [PHP-DEV] PDO subclass names

2024-04-23 Thread Matteo Beccati
Hi Saki, Il 21/04/2024 15:00, Saki Takamachi ha scritto: Hi internals, Recently I've been working on an RFC regarding object support for BCMath. While working on that, I learned of the following RFC: https://wiki.php.net/rfc/namespaces_in_bundled_extensions If we follow this RFC, is it

Re: [PHP-DEV] [RFC] [Discussion] Add openStream() to XML{Reader,Writer}

2024-04-23 Thread Benjamin Außenhofer
On Mon, Apr 22, 2024 at 8:43 PM Niels Dossche wrote: > Hi internals > > I'm opening the discussion for my RFC "Add openStream() to > XML{Reader,Writer}". > RFC link: https://wiki.php.net/rfc/xmlreader_writer_streams Not sure this needs an RFC. Its a sensible addition and the explanations make