[PHP-DEV] [VOTE] PDO driver specific parsers

2024-06-03 Thread Matteo Beccati
Hi internals, I've just opened the vote for the "PDO driver specific parsers" RFC. The RFC contains a single vote which requires a 2/3 majority to pass. Voting runs 2 weeks until 2024-06-17 15:00 UTC. Please find the following resources for your references: RFC Text: https://wiki.php.net/rfc

Re: [PHP-DEV] [RFC] Asymmetric Visibility, v2

2024-06-03 Thread Alexandru Pătrănescu
On Fri, May 31, 2024 at 7:13 PM Larry Garfield wrote: > > So we feel the best way forward is to make the following changes: > > * private(set) implicitly means "final". (You can declare it explicitly > if you want, but it isn't necessary.) > * Make readonly incompatible with aviz again. > > Thou

Re: [PHP-DEV] [RFC] [Vote] #[\Deprecated] attribute

2024-06-03 Thread Matthew Weier O'Phinney
On Wed, May 22, 2024 at 2:24 AM Benjamin Außenhofer wrote: > The vote for the RFC #[\Deprecated] attribute is now open: > > https://wiki.php.net/rfc/deprecated_attribute > > Voting will close on Wednesday 5th June, 08:00 GMT. > I have voted no for a few reasons: - Ideally, I'd like to be able

Re: [PHP-DEV] [RFC] [Vote] #[\Deprecated] attribute

2024-06-03 Thread Ilija Tovilo
Hi Matthew On Mon, Jun 3, 2024 at 3:15 PM Matthew Weier O'Phinney wrote: > > On Wed, May 22, 2024 at 2:24 AM Benjamin Außenhofer > wrote: >> >> The vote for the RFC #[\Deprecated] attribute is now open: >> >> https://wiki.php.net/rfc/deprecated_attribute >> >> Voting will close on Wednesday 5th

Re: [PHP-DEV] [RFC] [Vote] #[\Deprecated] attribute

2024-06-03 Thread Matthew Weier O'Phinney
On Mon, Jun 3, 2024 at 9:46 AM Ilija Tovilo wrote: > Hi Matthew > > On Mon, Jun 3, 2024 at 3:15 PM Matthew Weier O'Phinney > wrote: > > > > On Wed, May 22, 2024 at 2:24 AM Benjamin Außenhofer > wrote: > >> > >> The vote for the RFC #[\Deprecated] attribute is now open: > >> > >> https://wiki.ph

Re: [PHP-DEV] [RFC] [discussion] Correctly name the rounding mode and make it an Enum

2024-06-03 Thread Derick Rethans
On Sat, 1 Jun 2024, Gina P. Banyard wrote: > On Friday, 31 May 2024 at 18:15, Larry Garfield > wrote: > > > On Fri, May 31, 2024, at 4:41 PM, Jorg Sowa wrote: > > > > > Hey Saki, I like this change. When I was implementing additional > > > rounding modes for the next PHP version I was initial

Re: [PHP-DEV] [RFC] [discussion] Correctly name the rounding mode and make it an Enum

2024-06-03 Thread Derick Rethans
On Fri, 31 May 2024, Saki Takamachi wrote: > I would like to start an RFC discussion regarding rounding modes. > https://wiki.php.net/rfc/correctly_name_the_rounding_mode_and_make_it_an_enum I think it would be really helpful to have a description (and examples) for each of the rounding modes i

Re: [PHP-DEV] [RFC] [discussion] Correctly name the rounding mode and make it an Enum

2024-06-03 Thread Jordan LeDoux
On Sun, Jun 2, 2024 at 2:27 PM Jorg Sowa wrote: > > It should also be noted that ceil/floor is very English specific > terminology that may not be immediately obvious to non-English speakers, > thus my preference for using some variation of towards positive/negative > infinity. > > This statement

Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function

2024-06-03 Thread Tim Düsterhus
Hi On 5/29/24 20:05, Derick Rethans wrote: For each op_array, Xdebug tries to figure out every possible path by following jumps. Certain opcodes, such as GENERATOR_RETURN, THROW, RETURN, and EXIT [1] are considered as an exit point out of the function. A path ends there. You linked to a code_c

Re: [PHP-DEV] [RFC] [discussion] Correctly name the rounding mode and make it an Enum

2024-06-03 Thread Tim Düsterhus
Hi On 6/3/24 19:02, Jordan LeDoux wrote: If the behavior of that mode is to ALWAYS round regardless of the value of the remainder, then it should remain ceil IMO. It's a pretty well understood behavior in many programming languages. However, "HALF_TOWARDS_POSITIVE_INFINITY" is a different behavi

Re: [PHP-DEV] [RFC] [discussion] Correctly name the rounding mode and make it an Enum

2024-06-03 Thread Tim Düsterhus
Hi On 6/2/24 23:26, Jorg Sowa wrote: Far more people search for `ceiling` than `round toward positive infinity` or `round positive infinity`. Of course, I may be wrong by choosing Could it be the case that folks do not need to search as much for “towards positive infinity”, because in contras

Re: [PHP-DEV] [RFC] [discussion] Correctly name the rounding mode and make it an Enum

2024-06-03 Thread Tim Düsterhus
Hi On 6/3/24 18:21, Derick Rethans wrote: But they're well established in existing PHP features. That does not mean that we shouldn't attempt to do better for newly introduced APIs. Over time there will be more developers that will newly learn PHP than there are developers that already know

Re: [PHP-DEV] Fwd: Request for RFC Karma to Propose any_empty and all_empty Methods

2024-06-03 Thread Ilija Tovilo
Hi Elminson! On Mon, May 27, 2024 at 6:51 PM Elminson De Oleo Baez wrote: > > I hope this message finds you well. I am writing to request RFC karma for my > wiki account in order to propose a new RFC. > > My proposal involves the introduction of two new methods, any_empty and > all_empty, for w

Re: [PHP-DEV] Fwd: Request for RFC Karma to Propose any_empty and all_empty Methods

2024-06-03 Thread Bilge
Is it not already covered by array_any() and array_all() anyway? You can just write a predicate if you want the (awful) semantics of empty(). Bilge

Re: [PHP-DEV] [RFC] Asymmetric Visibility, v2

2024-06-03 Thread Andreas Heigl
Hey Larry, hey Ilija Am 29.05.24 um 21:15 schrieb Larry Garfield: As promised, Ilija and I offer this revised version of asymmetric visibility. https://wiki.php.net/rfc/asymmetric-visibility-v2 It's still essentially the same as last year's version, but with a few adjustments and changes: *