[PHP-DEV] Multibyte for ucfirst function

2024-01-05 Thread youkidearitai
Hi, Internals We got feature request for "Multibyte for ucfirst function". https://github.com/php/php-src/issues/13075 I think make sense for implement this function, but I don't know well about not-latin language. I have a question. gnutix san pick up sample to below:

Re: Fwd: [PHP-DEV] clarify the destructuring list() concept

2024-01-05 Thread Mönôme Epson
Thank you for your reply. Forgive me for a few mistakes. I'm new to Gmail... Is this line "top-post" ? Le sam. 6 janv. 2024 à 00:48, Larry Garfield a écrit : > What you can do, as Rowan noted, is this: > > https://3v4l.org/cEmcC > > I understood your code. It is interesting when you do not know

Re: Fwd: [PHP-DEV] clarify the destructuring list() concept

2024-01-05 Thread Larry Garfield
On Fri, Jan 5, 2024, at 5:16 PM, Mönôme Epson wrote: > -- Forwarded message - > I try to follow the procedure of: https://wiki.php.net/rfc/howto > > It seems to me that list() is not clearly specified. > I wanted to know your opinions on this. > > > For example : > $key = "a"; >

Fwd: [PHP-DEV] clarify the destructuring list() concept

2024-01-05 Thread Mönôme Epson
-- Forwarded message - De : Mönôme Epson Date: sam. 6 janv. 2024 à 00:15 Subject: Re: [PHP-DEV] clarify the destructuring list() concept To: Rowan Tommins Le ven. 5 janv. 2024 à 23:31, Rowan Tommins a écrit : > > I'm not sure what your question is I try to follow the

Re: [PHP-DEV] clarify the destructuring list() concept

2024-01-05 Thread Rowan Tommins
On 5 January 2024 20:44:00 GMT, "Mönôme Epson" wrote: >Hello internals, > >> The purpose of list() is to assign a list of variables. > >What should be the underlying concept behind the list() language construct? > >I propose that list() is the reciprocal of array(). >That is, if array() is a

[PHP-DEV] clarify the destructuring list() concept

2024-01-05 Thread Mönôme Epson
Hello internals, > The purpose of list() is to assign a list of variables. What should be the underlying concept behind the list() language construct? I propose that list() is the reciprocal of array(). That is, if array() is a function call, then list() is the signature of a function. Do you

[PHP-DEV] [VOTE] [RFC] Collecting All Policies Into One Repository

2024-01-05 Thread Derick Rethans
Hi, I have just opened the voting on the "Policy Repository" RFC. It will run until January 22nd, 2024 at 08:00 UTC: https://wiki.php.net/rfc/policy-repository#voting_choices cheers, Derick -- https://derickrethans.nl | https://xdebug.org | https://dram.io Author of Xdebug. Like it?

Re: [PHP-DEV] RFC proposal: worker mode primitives for SAPIs

2024-01-05 Thread Deleu
On Fri, Jan 5, 2024 at 9:40 AM Michał Marcin Brzuchalski < michal.brzuchal...@gmail.com> wrote: > There are indeed dozens of libraries already working with PSR nicely but > IMHO > the API should provide all the necessary information in a way that allows > the construction of such objects, > but

Re: [PHP-DEV] [RFC] [Vote] Resource to object conversion

2024-01-05 Thread Kamil Tekiela
Hi Máté, I have one question. If the primary stream resources get the is_resource hack, what hampers the changes from landing in a minor version? I'd assume that the migration would be mostly seamless. Is it the get_resource_type checks? Is it because is_resource also checks whether the resource

Re: [PHP-DEV] RFC proposal: worker mode primitives for SAPIs

2024-01-05 Thread Rowan Tommins
On 5 January 2024 12:18:51 GMT, Robert Landers wrote: >This is easy to handle from C. If the callback takes an argument, >don't fill in the super-globals. Again, that's compatible only in a narrow sense: it provides both APIs on any run-time which can do so safely. You still have an

Re: [PHP-DEV] RFC proposal: worker mode primitives for SAPIs

2024-01-05 Thread Michał Marcin Brzuchalski
pt., 5 sty 2024 o 13:19 Robert Landers napisał(a): > On Fri, Jan 5, 2024 at 11:59 AM Rowan Tommins > wrote: > > > > Globals is how this works (atm) > > > > It's how it works for native SAPIs. It's not, as far as I know, how any > worker system other than FrankenPHP has implemented its API.

Re: [PHP-DEV] RFC proposal: worker mode primitives for SAPIs

2024-01-05 Thread Robert Landers
On Fri, Jan 5, 2024 at 11:59 AM Rowan Tommins wrote: > > On 5 January 2024 09:02:05 GMT, Robert Landers > wrote: > > I don't think they are fundamentally incompatible. If we look at > >FrankenPHP's implementation, you pass a callback that gets called when > >there is a request. > > No, you pass

Re: [PHP-DEV] RFC proposal: worker mode primitives for SAPIs

2024-01-05 Thread Rowan Tommins
On 5 January 2024 09:02:05 GMT, Robert Landers wrote: > I don't think they are fundamentally incompatible. If we look at >FrankenPHP's implementation, you pass a callback that gets called when >there is a request. No, you pass a callback which is called exactly once, for the next request. You

Re: [PHP-DEV] RFC proposal: worker mode primitives for SAPIs

2024-01-05 Thread Daniil Gentili
Hi, > But holding up the entire conversation because these things don't even > exist, BTW, I'm not asking to wait for the implementation of a native event loop before implementing a worker mode, I'm asking to design the worker mode API in a way that is compatible with an eventual native event

Re: [PHP-DEV] RFC proposal: worker mode primitives for SAPIs

2024-01-05 Thread Robert Landers
On Fri, Jan 5, 2024 at 8:47 AM Rowan Tommins wrote: > > On 5 January 2024 06:55:34 GMT, Robert Landers > wrote: > > >I already said this, but to reiterate: I, personally, hear what you > >are saying and largely agree with you; however, before we can really > >have any kind of discussion on

[PHP-DEV] [RFC] [Vote] Resource to object conversion

2024-01-05 Thread Máté Kocsis
Hi Everyone, As mentioned a few days ago, I've just opened the vote about resource to object conversion. The vote will be open for 2 weeks. RFC link: https://wiki.php.net/rfc/resource_to_object_conversion Discussion thread: https://externals.io/message/121660 Regards, Máté