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

2022-06-23 Thread Benjamin Eberlei
On Wed, Jun 22, 2022 at 6:01 PM Nicolas Grekas wrote: > Hi Benjamin and Derick, > > I'm replying to both of you because I see some things in common in your > comments. > > > >> https://wiki.php.net/rfc/auto-implement_stringable_for_string_backed_enums > > > I would prefer if this was an explicit

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

2022-06-23 Thread Go Kudo
2022年6月23日(木) 0:02 Tim Düsterhus : > Hi > > On 6/22/22 16:35, Go Kudo wrote: > > No additional comments seemed to be forthcoming, so the RFC was upgraded > to > > 1.5. > > The following changes have been made > > > > https://wiki.php.net/rfc/random_extension_improvement > > > > 1. Add: `Refine cla

[PHP-DEV] PHP 8.0.21RC1 Available for testing

2022-06-23 Thread Gabriel Caruso
PHP 8.0.21RC1 has just been released and can be downloaded from: https://downloads.php.net/~carusogabriel/ Or use the git tag: php-8.0.21RC1 Windows binaries are available at https://windows.php.net/qa#php-8.0 Please test it carefully, and report any bugs to https://github.com/php/php-src/issue

Re: [PHP-DEV] [RFC][Under discussion] Fetch properties in const expressions

2022-06-23 Thread Ilija Tovilo
Hi everyone As foreshadowed in the last e-mail I updated the RFC to restrict the fetching of properties to enums, and the PR to match it. Unless there is more feedback I'd like to start the vote early next week. https://wiki.php.net/rfc/fetch_property_in_const_expressions --- Hi Claude > I fee

[PHP-DEV] PHP 8.1.8RC1 Available for testing

2022-06-23 Thread Ben Ramsey
PHP 8.1.8RC1 has just been released and can be downloaded from: https://downloads.php.net/~ramsey/ or https://qa.php.net Or use the git tag: php-8.1.8RC1 Windows binaries are available at https://windows.php.net/qa#php-8.1 Please test it carefully, and report any bugs to http://github.com/ph

[PHP-DEV] PHP 8.2.0alpha2 is available for testing

2022-06-23 Thread Pierrick Charron
PHP 8.2.0alpha2 has just been released and can be downloaded from: https://downloads.php.net/~pierrick or https://qa.php.net/ or use the git tag: php-8.2.0alpha2 Windows binaries are available at: https://windows.php.net/qa/#php-8.2 Please test it carefully, and report any bugs to https://git

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

2022-06-23 Thread Larry Garfield
On Wed, Jun 22, 2022, at 2:31 PM, Alexandru Pătrănescu wrote: > On Wed, Jun 22, 2022 at 8:27 PM Larry Garfield > wrote: > >> >> So I am firmly against making it easier to (mis)use enums in a situation >> where constants are already the superior solution by every metric. The >> only argument I see

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

2022-06-23 Thread Larry Garfield
On Wed, Jun 22, 2022, at 4:43 PM, Rowan Tommins wrote: > On 22/06/2022 18:26, Larry Garfield wrote: >> The argument presented is that it's easier to type `AppRoles::Admin` than >> `"admin"`, because the former provides you with an error if you typo >> something. That's a valid argument, but... n

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

2022-06-23 Thread Guilliam Xavier
Hi Nicolas, thanks for the RFC, > There are also cases where using "->value" is just not possible. I mention > attributes in the RFC, which also mentions https://wiki.php.net/rfc/fetch_property_in_const_expressions (but with "For people that use non-strict mode, this extra “->value” is boilerplat

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

2022-06-23 Thread Levi Morrison via internals
On Tue, Jun 21, 2022 at 10:38 PM Pierrick Charron wrote: > > 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

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

2022-06-23 Thread Rowan Tommins
On 23 June 2022 17:48:57 BST, Levi Morrison via internals wrote: >IMO, this should mirror the low-level curl url API very directly. The >basis of my opinion is that we do not own libcurl; we are merely >adapting it for use in PHP. We cannot anticipate changes in their >design, nor do we have auth