Re: [PHP-DEV] Allow hooks in `readonly` promoted properties

2025-06-05 Thread Nick
Hey Larry, > On 6. Jun 2025, at 01:06, Larry Garfield wrote: >> Would this be expected to work? Can interface properties be declared >> `readonly`? >> interface Cleaned >> { >>public readonly string $clean { get; } // has readonly >> } > > Interface properties cannot be declared readonly to

[PHP-DEV] PHP 8.3.22 Released

2025-06-05 Thread Jakub Zelenka
The PHP development team announces the immediate availability of PHP 8.3.22. This is a bugfix release. All PHP 8.3 users are encouraged to upgrade to this version. For source downloads of PHP 8.3.22 please visit our downloads page: https://www.php.net/downloads Windows source and binaries can be

[PHP-DEV] PHP 8.4.8 Released

2025-06-05 Thread Calvin Buckley
The PHP development team announces the immediate availability of PHP 8.4.8. This is a bugfix release. All PHP 8.4 users are encouraged to upgrade to this version. For source downloads of PHP 8.4.8 please visit our downloads page. Windows binaries can be found on the PHP for Windows site. The list

Re: [PHP-DEV] Allow hooks in `readonly` promoted properties

2025-06-05 Thread Larry Garfield
On Thu, Jun 5, 2025, at 1:12 AM, Nick wrote: > Hey internals, > >> On 4. Jun 2025, at 20:19, Nick wrote: >>> I believe at the moment that RFC text is all there is. :-) I don't know >>> that it's worth opening a discussion without at least a mostly-done >>> implementation. Also, Ilija is rather

Re: [PHP-DEV][DISCUSSION] grapheme_* functions adds locale in parameter (or any?)

2025-06-05 Thread Claude Pache
> > However, I watched that RFC: https://wiki.php.net/rfc/strtolower-ascii > and https://github.com/php/php-src/pull/7511, > Perhaps, I should not locale-dependant for grapheme functions. Note that this RFC was about making the functions independent from the global mode as set by `setlocale()`.

Re: [PHP-DEV] [VOTE] Clone with v2

2025-06-05 Thread Volker Dusch
On Wed, Jun 4, 2025 at 6:41 PM Larry Garfield wrote: > While I support this RFC and want to see it in, I have voted no for 2 > reasons. > > 1. The switch to an array parameter, as previously noted, is a major DX > loss for unclear benefit. It's just all-around a worse design, and "maybe > we can

Re: [PHP-DEV][DISCUSSION] grapheme_* functions adds locale in parameter (or any?)

2025-06-05 Thread youkidearitai
2025年6月5日(木) 18:02 Claude Pache : > > > > > Le 5 juin 2025 à 03:04, youkidearitai a écrit : > > > > Hi, Internals > > > > I would like adds locale parameter that already there are grapheme_* > > functions. > > Because Unicode is locale-dependency but grapheme_* functions is not > > locale-depende

Re: [PHP-DEV] [RFC] Transform void into an alias for null

2025-06-05 Thread Bob Weinand
On 5.6.2025 02:59:56, Daniel Scherzer wrote: On Wed, Jun 4, 2025 at 4:49 PM Bob Weinand wrote: Hey Daniel, where's the BC break? Nothing which worked today will stop working (except you won't get exceptions in some cases). That's not a BC break. The only thing which stops worki

Re: [PHP-DEV][DISCUSSION] grapheme_* functions adds locale in parameter (or any?)

2025-06-05 Thread Claude Pache
> Le 5 juin 2025 à 03:04, youkidearitai a écrit : > > Hi, Internals > > I would like adds locale parameter that already there are grapheme_* > functions. > Because Unicode is locale-dependency but grapheme_* functions is not > locale-dependency. > > For example, Add $locale parameter is bel

Re: [PHP-DEV] Allowing class properties to remain Uninitialized as a default value.

2025-06-05 Thread Faizan Akram Dar
On Thu, 5 Jun 2025, 13:56 Bradley Hayes, wrote: > Here is another way to think about it, trying to make the arguments > optional not have a new value type. > > Optional arguments currently requires a default value. > > Assigning values to properties is truly optional but we cant reflect this > in