[PHP-DEV] [RFC] [Under Discussion] New Curl URL API

2022-06-21 Thread Pierrick Charron
Hi, Following our discussions we had on the subject of the new Curl URL API, and other curl improvements. I decided to only focus on adding the new Curl URL API and put aside all other improvements. Here is the RFC that reflects our current conversations. https://wiki.php.net/rfc/curl-url-api

[PHP-DEV] [RFC] [Under Discussion] Auto-implement Stringable for string backed enums

2022-06-21 Thread Nicolas Grekas
Hi everyone! I'd like to open a discussion on this RFC, to auto-implement Stringable for string-backed enums: https://wiki.php.net/rfc/auto-implement_stringable_for_string_backed_enums I'm looking forward to your feedback, Cheers, Nicolas

[PHP-DEV] [RFC] [Under Discussion] Constants in traits

2022-06-21 Thread shinji igarashi
Hello everyone! I'd like to start a discussion on an RFC to allow defining constants in traits. https://wiki.php.net/rfc/constants_in_traits I'm looking forward to your feedback, including corrections on English wordings. Thanks! -- Shinji Igarashi -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] [RFC] Make the iterator_*() family accept all iterables

2022-06-21 Thread Kamil Tekiela
Just linking up the previous discussion around this topic: GH: https://github.com/php/php-src/pull/3293 ML: https://externals.io/message/102313

[PHP-DEV] Re: [RFC] [Under Discussion] PDO driver specific sub-classes

2022-06-21 Thread Ben Ramsey
On 6/20/22 18:01, Dan Ackroyd wrote: Hi, Following previous discussions, here is an RFC to have DB specific classes for PDO. https://wiki.php.net/rfc/pdo_driver_specific_subclasses cheers Dan Ack Is there a reason we shouldn't go ahead and add subclasses for all database connection types,

[PHP-DEV] [RFC] Make the iterator_*() family accept all iterables

2022-06-21 Thread Tim Düsterhus , WoltLab GmbH
Hi Internals as at least one participant in the previous thread [1] voiced the need for an RFC, I've written up an RFC: https://wiki.php.net/rfc/iterator_xyz_accept_array which I am officially opening up for discussion, just in time for PHP 8.2. Voting will start in 2 weeks on 2022-07-05.

Re: [PHP-DEV] Make iterator_to_array() accept all iterables

2022-06-21 Thread Levi Morrison via internals
On Fri, Jun 17, 2022 at 9:28 AM G. P. B. wrote: > > On Fri, 17 Jun 2022 at 16:20, Tim Düsterhus wrote: > > > Hi Internals > > > > I've come across a case where it would've been useful if > > `iterator_to_array()` would accept iterable instead of Traversable to > > avoid checking whether the

Re: [PHP-DEV] [RFC] [Under Discussion] Random Extension Improvement

2022-06-21 Thread Go Kudo
2022年6月21日(火) 18:23 Guilliam Xavier : > On Mon, Jun 20, 2022 at 5:25 PM Christoph M. Becker > wrote: > > > > On 20.06.2022 at 16:44, Go Kudo wrote: > > > > > 2022年6月20日(月) 23:37 Lynn : > > > > > >> On Mon, Jun 20, 2022 at 3:15 PM Guilliam Xavier < > guilliam.xav...@gmail.com > > >> wrote: > > >>

Re: [PHP-DEV] [RFC] [Under Discussion] PDO driver specific sub-classes

2022-06-21 Thread Rowan Tommins
On 21/06/2022 02:25, Larry Garfield wrote: * "Should the sub-classes only be avaiable when support for that DB is compiled in?" - I agree, probably not. Also, "available" is misspelled. * "Create all DB sub-classes?" - I'd say they all should have subclasses, even if empty. It's more

Re: [PHP-DEV] [RFC] [Under Discussion] Random Extension Improvement

2022-06-21 Thread Guilliam Xavier
On Mon, Jun 20, 2022 at 5:25 PM Christoph M. Becker wrote: > > On 20.06.2022 at 16:44, Go Kudo wrote: > > > 2022年6月20日(月) 23:37 Lynn : > > > >> On Mon, Jun 20, 2022 at 3:15 PM Guilliam Xavier >> wrote: > >> > https://wiki.php.net/rfc/random_extension_improvement > >>> > >>> Thanks, but I am