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

2025-06-19 Thread Nicolas Grekas
Le mar. 17 juin 2025 à 23:22, Larry Garfield a écrit : > 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

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

2025-06-18 Thread Jeffrey Dafoe
> 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.  One could probabl

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