Re: [PHP-DEV] Discussion Short Constructor

2025-07-15 Thread Larry Garfield
On Tue, Jul 15, 2025, at 1:07 PM, Dmitry Derepko wrote: > Hi, > > I've found a discussion about Records > https://externals.io/message/125975 and found a one key point which I > really like in Kotlin (hello): short constructors. > > Rob said that short constructor will be probably removed: >> 1.

Re: [PHP-DEV] [VOTE] Single-Expression Functions

2025-07-15 Thread Tim Düsterhus
Hi On 7/15/25 19:56, Dmitry Derepko wrote: RFC: https://wiki.php.net/rfc/single-expression-functions Discussion: https://externals.io/message/127423 PR: https://github.com/php/php-src/pull/17677 Thank you for the RFC. It probably does not come entirely unexpected that I voted against, given t

Re: [PHP-DEV] [RFC] Deprecations for PHP 8.5

2025-07-15 Thread Morgan
On 2025-07-03 20:34, Morgan wrote: On 2025-07-03 07:56, Gina P. Banyard wrote: > Deprecate using values of type null and bool as array offsets and when calling array_key_exists() Still curious about this. What have you got against $branch = [false => $fail, true => $pass]; or $taken = $b

[PHP-DEV] Re: [VOTE] str_icontains

2025-07-15 Thread Adam Cable
On Tue, Jul 1, 2025 at 8:01 AM Adam Cable wrote: > Hi, > > Voting just opened on the "str_icontains" RFC. > > Please find the following resources: > > RFC: https://wiki.php.net/rfc/str_icontains > Discussion: https://externals.io/message/127667 > PR: https://github.com/php/php-src/pull/18705 > >

Re: [PHP-DEV] Discussion Short Constructor

2025-07-15 Thread Rob Landers
On Tue, Jul 15, 2025, at 20:07, Dmitry Derepko wrote: > Hi, > > I've found a discussion about Records https://externals.io/message/125975 and > found a one key point which I really like in Kotlin (hello): short > constructors. > > Rob said that short constructor will be probably removed: >> 1.

Re: [PHP-DEV] Oniguruma maintenance was ended on 2025-04-24

2025-07-15 Thread youkidearitai
2025年6月19日(木) 3:45 Peter Kokot : > > On Wed, 30 Apr 2025 at 11:04, youkidearitai wrote: >> >> 2025年4月30日(水) 17:13 Anton Smirnov : >> > >> > On 30/04/2025 08:05, youkidearitai wrote: >> > > Hi, Internals >> > > >> > > Oniguruma(鬼車) maintenance was ended on April 24, 2025. >> > > https://github.com/

Re: [PHP-DEV] Oniguruma maintenance was ended on 2025-04-24

2025-07-15 Thread Peter Kokot
On Tue, 15 Jul 2025 at 10:06, youkidearitai wrote: > 2025年6月19日(木) 3:45 Peter Kokot : > > > > On Wed, 30 Apr 2025 at 11:04, youkidearitai > wrote: > >> > >> 2025年4月30日(水) 17:13 Anton Smirnov : > >> > > >> > On 30/04/2025 08:05, youkidearitai wrote: > >> > > Hi, Internals > >> > > > >> > > Onigur

[PHP-DEV] [RFC] [Discussion] CHIPS

2025-07-15 Thread Dmitry Derepko
Hi internals, In collaboration with Niels Dossche I'd like to start the discussion for an RFC proposing a new Cookie option for use with CHIPS technology. As Niels noted, today is the day when in 4 weeks there will be code freeze, so let's try to fit into the lines and deliver the value to PHP 8.

Re: [PHP-DEV] RFC: Single-Expression functions

2025-07-15 Thread Dmitry Derepko
Hi Tim, Great questions, I’ll try to answer them all. Sorry for the late answer, looked like there are no interest in the RFC and I almost forgot about it. > On Jun 4, 2025, at 12:23 PM, Tim Düsterhus wrote: > > In the implementation I'm seeing that `$a = function() => 123;` will also > bec

Re: [PHP-DEV] [RFC] Deprecations for PHP 8.5

2025-07-15 Thread Nicolas Grekas
> > > Deprecate the __sleep() and __wakeup() magic methods > > I'm not sure about this one. I don't think it's worth it. It's just an > unnecessary BC break IMHO. I would also consider more ext/standard thing > rather than language. > I agree with Jakub here, __sleep and __wakeup are just fine. Ye

Re: [PHP-DEV] [RFC] Warnings for PHP 8.5

2025-07-15 Thread Rob Landers
On Mon, Jul 14, 2025, at 18:20, Gina P. Banyard wrote: > Hello internals, > > Similar to the mass deprecation RFC, I would like to propose the addition of > a few warnings in certain situations: > https://wiki.php.net/rfc/warnings-php-8-5 > > I am expecting these 4 sub-proposals to be mostly unc

Re: [PHP-DEV] [RFC][DISCUSSION] Add RFC 4648 compliant data encoding API

2025-07-15 Thread Andrey Andreev
Hello Ignace, $input or $data instead of $decoded (could actually do the same instead of $encoded, but that one doesn't feel as wrong) >> > Usage of `$encoded` and `$decoded` as parameter names is done to emphasize > the *state of the data**,* rather than its format. This is helpful as it > avoi

Re: [PHP-DEV] [VOTE] Single-Expression Functions

2025-07-15 Thread Tim Düsterhus
Hi On 7/15/25 23:37, Dmitry Derepko wrote: You’re right. I thought to shut down the RFC after absence of interest in the RFC, but Larry’s message reminded me that I should push it further to try to fit in the release cycle, which ends soon. The latest date to start a vote for PHP 8.5 would'v

Re: [PHP-DEV] [VOTE] Single-Expression Functions

2025-07-15 Thread Dmitry Derepko
> I'd like to note that the start of the vote was very surprising to me. As you > acknowledged yourself, my email regarding open questions and issues with the > RFC has been left unanswered for more the a month and then you started voting > 15 minutes after your response and making relevant ch

Re: [PHP-DEV] [PHP8.5] Feature freeze in 4 weeks

2025-07-15 Thread Jakub Zelenka
On Mon, Jul 14, 2025 at 4:12 PM Volker Dusch wrote: > Hi everyone, > > we would like to remind you that *the feature freeze for PHP 8.5 is in > ~4weeks on Tuesday, August 12* [1] > > The feature freeze for php-src means that we will not accept any new > features after the date of the feature free

Re: [PHP-DEV] [VOTE] Single-Expression Functions

2025-07-15 Thread Niels Dossche
On 15/07/2025 19:56, Dmitry Derepko wrote: > Hi, > > Voting just opened on the "Single-Expression Functions" RFC. > > Please find the following resources: > > RFC: https://wiki.php.net/rfc/single-expression-functions > > Discussion: https:/

[PHP-DEV] [VOTE] Single-Expression Functions

2025-07-15 Thread Dmitry Derepko
Hi, Voting just opened on the "Single-Expression Functions" RFC. Please find the following resources: RFC: https://wiki.php.net/rfc/single-expression-functions Discussion: https://externals.io/message/127423 PR: https://github.com/php/php-src/pull/17677 As with every RFC, a 2/3 majority is requ

[PHP-DEV] Discussion Short Constructor

2025-07-15 Thread Dmitry Derepko
Hi, I've found a discussion about Records https://externals.io/message/125975 and found a one key point which I really like in Kotlin (hello): short constructors. Rob said that short constructor will be probably removed: 5. Inline constructor isn’t necessary and could be proposed separately.

Re: [PHP-DEV][RFC] Deprecate type juggling to and from bool type within the function type juggling context

2025-07-15 Thread Nicolas Grekas
Le ven. 11 juil. 2025 à 13:00, Gina P. Banyard a écrit : > > On Monday, 30 June 2025 at 10:26, Nicolas Grekas < > nicolas.grekas+...@gmail.com> wrote: > > Hi Gina > > Thanks for experimenting with this on > https://github.com/symfony/symfony/pull/60890/files > > It's good to see that fitting this

Re: [PHP-DEV] [VOTE] Single-Expression Functions

2025-07-15 Thread Dmitry Derepko
Fixed. You saved my life, thanks! -- Best regards, Dmitrii Derepko. @xepozz

Re: [PHP-DEV] RFC: Single-Expression functions

2025-07-15 Thread Larry Garfield
On Tue, Jun 3, 2025, at 12:11 PM, Dmitry Derepko wrote: > I've changed the structure, followed the rfc template now. > > The voting section isn't available now, because the RFC is under discussion. Hi Dmitrii. Are you going to continue this? If you want to bring it to a vote for this release, i

Re: [PHP-DEV] Oniguruma maintenance was ended on 2025-04-24

2025-07-15 Thread Niels Dossche
On 15/07/2025 09:26, youkidearitai wrote: > 2025年6月19日(木) 3:45 Peter Kokot : >> >> What about bundling Oniguruma to php-src/ext/mbstring/oniguruma again as it >> once was already? This would make development easier to be located inside >> php-src. However, everything put inside php-src has a ques

[PHP-DEV] TrueAsync Engine API RFC

2025-07-15 Thread Edmond Dantes
Good day everyone. Today I’d like to present an updated RFC related to True Async. This RFC proposes changes only to PHP core and does not affect any user-facing features. https://wiki.php.net/rfc/true_async_engine_api The main goal of the RFC is to introduce a backend for asynchronous function

Re: [PHP-DEV] [RFC][DISCUSSION] Add RFC 4648 compliant data encoding API

2025-07-15 Thread ignace nyamagana butera
On Mon, Jul 14, 2025 at 11:26 PM Andrey Andreev wrote: > Hi all, > > I have a few suggestions, starting with naming improvements: > - Forgiving instead of Lenient (align with > https://infra.spec.whatwg.org/#forgiving-base64) > - Shorten the option names; one example would be Variable/Constant in

Re: [PHP-DEV] [RFC] Readonly property hooks

2025-07-15 Thread Nicolas Grekas
Le lun. 14 juil. 2025 à 15:41, Larry Garfield a écrit : > On Sun, Jul 13, 2025, at 6:28 PM, Ilija Tovilo wrote: > > Hi Nick > > > > On Fri, Jul 11, 2025 at 6:31 AM Nick wrote: > >> > >>> On 8. Jun 2025, at 11:16, Larry Garfield > wrote: > >>> > >>> https://wiki.php.net/rfc/readonly_hooks > >>>

Re: [PHP-DEV] RFC: Records

2025-07-15 Thread Nicolas Grekas
Le lun. 14 juil. 2025 à 20:26, Rob Landers a écrit : > Hey Dmitry, > > Please remember to bottom post! > > On Mon, Jul 14, 2025, at 11:16, Dmitry Derepko wrote: > > Hi, Rob! > > I'm just wondering, why the implementation differs from a regular class? > > Record makes a "class" immutable and uniqu

Re: [PHP-DEV] [RFC] Warnings for PHP 8.5

2025-07-15 Thread Nicolas Grekas
Hi Gina, Le lun. 14 juil. 2025 à 18:22, Gina P. Banyard a écrit : > Hello internals, > > Similar to the mass deprecation RFC, I would like to propose the addition > of a few warnings in certain situations: > https://wiki.php.net/rfc/warnings-php-8-5 > > I am expecting these 4 sub-proposals to be

Re: [PHP-DEV] [VOTE] Single-Expression Functions

2025-07-15 Thread Gina P. Banyard
On Tuesday, 15 July 2025 at 19:28, Dmitry Derepko wrote: > Fixed. The voting widget is still marked as having the vote closed, and so it's impossible to vote on the RFC. For future reference, you are allowed to vote on your own RFCs, doing so allows you to check that everything works before an

Re: [PHP-DEV] [VOTE] Single-Expression Functions

2025-07-15 Thread Gina P. Banyard
On Tuesday, 15 July 2025 at 19:43, Gina P. Banyard wrote: > For future reference, you are allowed to vote on your own RFCs, doing so > allows you to check that everything works before announcing the vote has > started on the mailing. I forgot that you don't have voting karma, so please forget

Re: [PHP-DEV][DISCUSSION] Add locale and strength for grapheme functions

2025-07-15 Thread youkidearitai
2025年7月14日(月) 19:22 Derick Rethans : > > On Wed, 9 Jul 2025, youkidearitai wrote: > > > Hi, Internals > > > > I changed below the RFC. > > - https://wiki.php.net/rfc/grapheme_add_locale_for_case_insensitive > > Pull request is below: > > - https://github.com/php/php-src/pull/18792 > > > > Change po