[PHP-DEV] [RFC] [Discussion] #[\DelayedTargetValidation] attribute

2025-06-17 Thread Daniel Scherzer
Hi internals, I'd like to start the discussion for a new RFC about adding a `#[\DelayedTargetValidation]` attribute. * RFC: https://wiki.php.net/rfc/delayedtargetvalidation_attribute * Implementation: https://github.com/php/php-src/pull/18817 --Daniel

Re: [PHP-DEV] Pre-RFC: dd() and dump() functions for PHP core

2025-06-17 Thread Jonathan Vollebregt
On 6/17/25 9:54 PM, Braunson Yager wrote: I'd like to gauge interest in adding two debugging functions to PHP core: dd() and dump(). Going out of your way to deliberately conflict with two very popular userland function names is a bad idea. *Enhanced Features Over Existing Solutions *- Nat

Re: [PHP-DEV] Pre-RFC: dd() and dump() functions for PHP core

2025-06-17 Thread Kamil Tekiela
While I understand that dd is a valid way of debugging PHP code, I don't think we should encourage this. Users should be encouraged to learn how to use proper debugger like XDebug. Plus PHP has plenty of dumping functions already and I see no need for yet another one.

Re: [PHP-DEV] Pre-RFC: dd() and dump() functions for PHP core

2025-06-17 Thread Larry Garfield
On Tue, Jun 17, 2025, at 2:54 PM, Braunson Yager wrote: > Hi internals, > > I'd like to gauge interest in adding two debugging functions to PHP > core: dd() and dump(). > > *Background* > Currently, developers rely on userland solutions like Laravel's dd() > helper or Symfony's VarDumper for enha

[PHP-DEV] Pre-RFC: dd() and dump() functions for PHP core

2025-06-17 Thread Braunson Yager
Hi internals, I'd like to gauge interest in adding two debugging functions to PHP core: dd() and dump(). *Background* Currently, developers rely on userland solutions like Laravel's dd() helper or Symfony's VarDumper for enhanced debugging output. These tools are widely adopted across the PHP eco

Re: [PHP-DEV] [RFC] Add num_available_processors

2025-06-17 Thread Eric Norris
Hello! On Sun, Jun 15, 2025 at 1:33 PM Daniel Kesselberg wrote: > > Hi, > > Thanks for all your feedback on the RFC. > > I've updated the RFC to incorporate most of your feedback: > https://wiki.php.net/rfc/num_available_processors > > 1) The limitation, that the CPU affinity mask is ignored > 2)

Re: [PHP-DEV] [RFC] Add num_available_processors

2025-06-17 Thread Gina P. Banyard
On Sunday, 15 June 2025 at 19:32, Daniel Kesselberg wrote: > Hi, > > Thanks for all your feedback on the RFC. > > I've updated the RFC to incorporate most of your feedback: > https://wiki.php.net/rfc/num_available_processors > > 1) The limitation, that the CPU affinity mask is ignored This i