[PHP-DEV] Re: [RFC] [Discussion] Add openStream() to XML{Reader,Writer}

2024-05-17 Thread Niels Dossche
On 22/04/2024 20:41, Niels Dossche wrote: > Hi internals > > I'm opening the discussion for my RFC "Add openStream() to > XML{Reader,Writer}". > RFC link: https://wiki.php.net/rfc/xmlreader_writer_streams > > Kind regards > Niels Hi internals The main complaint that kept coming up in internal

Re: [PHP-DEV] [DISCUSSION] Checking uninitialized class properties

2024-05-17 Thread Ilija Tovilo
Hi Luigi On Fri, May 17, 2024 at 11:40 PM Luigi Cardamone wrote: > > Here is an example to describe my problem. Imagine a simple > DTO like this: > > class MyDTO{ > public ?int $propA; > public ?int $propB; > } > > Imagine that a Form processor or a generic mapper fill some of > these

Re: [PHP-DEV] [DISCUSSION] Checking uninitialized class properties

2024-05-17 Thread Larry Garfield
On Fri, May 17, 2024, at 9:40 PM, Luigi Cardamone wrote: > Hello Internals, > during last PHPDay in Verona I discussed this topic with some of > you and it was suggested to me to send an email here. > > Here is an example to describe my problem. Imagine a simple > DTO like this: > > class MyDTO{ >

[PHP-DEV] [DISCUSSION] Checking uninitialized class properties

2024-05-17 Thread Luigi Cardamone
Hello Internals, during last PHPDay in Verona I discussed this topic with some of you and it was suggested to me to send an email here. Here is an example to describe my problem. Imagine a simple DTO like this: class MyDTO{ public ?int $propA; public ?int $propB; } Imagine that a Form

Re: [PHP-DEV] [RFC] [Discussion] Clone with

2024-05-17 Thread Tim Düsterhus
Hi On 5/9/24 15:10, Andreas Hennings wrote: The syntax is well suited for the most common case, which is regular wither methods for one or more known properties. I don't like the array syntax as a default. It has inferior DX for regular withers, and possible performance impact from the

Re: [PHP-DEV] Switching max_execution_time from CPU time to wall-clock time and from SIGPROF to SIGALRM

2024-05-17 Thread Calvin Buckley
On May 17, 2024, at 10:47 AM, Arnaud Le Blanc wrote: > > Hi internals, > > There is an issue with max_execution_time on MacOS, probably only > MacOS 14 on Apple Silicon, that causes timeouts to fire too early [1]. > max_execution_time is implemented with setitimer(ITIMER_PROF) on this >

Re: [PHP-DEV] Re: [RFC] [Discussion] #[\Deprecated] attribute again v1.3

2024-05-17 Thread Larry Garfield
On Fri, May 17, 2024, at 3:49 PM, Tim Düsterhus wrote: > Hi > > On 5/17/24 17:02, Larry Garfield wrote: >> Why is the attribute not allowed on classes? I think it would make sense on >> every language structure, unrestricted. (Including classes, parameters, >> everything.) > > There is not

Re: [PHP-DEV] Re: [RFC] [Discussion] #[\Deprecated] attribute again v1.3

2024-05-17 Thread Tim Düsterhus
Hi On 5/17/24 17:02, Larry Garfield wrote: Why is the attribute not allowed on classes? I think it would make sense on every language structure, unrestricted. (Including classes, parameters, everything.) There is not pre-existing semantics of deprecating a class from the engine PoV.

Re: [PHP-DEV] Re: [RFC] [Discussion] #[\Deprecated] attribute again v1.3

2024-05-17 Thread Larry Garfield
On Fri, May 17, 2024, at 9:53 AM, Benjamin Außenhofer wrote: > On Tue, Apr 23, 2024 at 3:27 PM Benjamin Außenhofer > wrote: >> Hi internals, >> >> My PR for #[\Deprecated] attribute was in hibernation for a long while now >> and after some off-list discussion a few weeks ago I have decided to

Re: [PHP-DEV] Switching max_execution_time from CPU time to wall-clock time and from SIGPROF to SIGALRM

2024-05-17 Thread Robert Landers
On Fri, May 17, 2024 at 3:50 PM Arnaud Le Blanc wrote: > > Hi internals, > > There is an issue with max_execution_time on MacOS, probably only > MacOS 14 on Apple Silicon, that causes timeouts to fire too early [1]. > max_execution_time is implemented with setitimer(ITIMER_PROF) on this >

[PHP-DEV] Switching max_execution_time from CPU time to wall-clock time and from SIGPROF to SIGALRM

2024-05-17 Thread Arnaud Le Blanc
Hi internals, There is an issue with max_execution_time on MacOS, probably only MacOS 14 on Apple Silicon, that causes timeouts to fire too early [1]. max_execution_time is implemented with setitimer(ITIMER_PROF) on this platform, and the SIGPROF signal is delivered too early for some reason.

[PHP-DEV] Re: [RFC] [Discussion] #[\Deprecated] attribute again v1.3

2024-05-17 Thread Benjamin Außenhofer
On Tue, Apr 23, 2024 at 3:27 PM Benjamin Außenhofer wrote: > Hi internals, > > My PR for #[\Deprecated] attribute was in hibernation for a long while now > and after some off-list discussion a few weeks ago I have decided to > revisit it and asked Tim to help me out with the work. > > Tim has

Re: [PHP-DEV] [RFC] [Vote] Type Guards for Classes

2024-05-17 Thread Casper Langemeijer
On Thu, May 16, 2024, at 22:31, Patrik Václavek wrote: > This feature aims to simplify and standardize the process of verifying that a > variable is an instance of a specific class, enhancing code readability and > reducing boilerplate code. > > Currently, in PHP, to ensure that a variable is