Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127698 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id BBBFF1A00BC for ; Tue, 17 Jun 2025 19:55:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1750190005; bh=+b0u5kH+1Cfv8cBpS3NLB7raOI4Vvq4Dn93RgazM8yQ=; h=From:Date:Subject:To:From; b=Xn/3+K5XpCUOfm49M/8LpYYC8jDxPwh+3hsosPaFl0Rd98w2ZrOJLZ2xZj5deM4X2 SNN2qkNCOwN1MHm8qk12OLgkbb9vfs9sOrpN5798sKC5NkgmkqPZqiZ4O/yJVXzZeF a3IbcIstEBuZooFofaNdVUL5B+U2WgFCpTud2acixXN19QdnpVXmN9M0uLbL0nO++n ZNDFB5Bf+jlrCI/hJixYgtfLMcrltSkTs1CoR0GllrXXGC2DdaD3J3r5yAGbZ/0iZm OECPuqigxOLk2mJwNSiZ88daCiwA690vxAgtlu6DB/NOnSaKx1SY76KAAm/zpcQKAE NUfQQYMDXQrQA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1C34F18002F for ; Tue, 17 Jun 2025 19:53:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 17 Jun 2025 19:53:24 +0000 (UTC) Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-32b5931037eso24371631fa.2 for ; Tue, 17 Jun 2025 12:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750190121; x=1750794921; darn=lists.php.net; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=+b0u5kH+1Cfv8cBpS3NLB7raOI4Vvq4Dn93RgazM8yQ=; b=ZDnaR7ca+1H85h4+slqAvUKNPzTN/vH9Ds+eD+olxPhIFINqd21r2EgJnwmPPsKVQs +rsbVFONyHdxRgknJ1KtH44XOTYV3LhBDpNnIbtxFxWepIXXAPSgRBTdGceYWa8waaEN Rp5d6NfL3tWM3pMcSugWFw3g1qgHQK4kkVZojGoYbfe92moykU5J7lixGt5aQkWWkrpf zigtuV7HBpVFd/REORZddPJVJ74bImsdH7V4KlsGiBytEW6Nt9BujU0HvMwA2ikv2fqO qz75ixy3DFmekqb3Cc3TubsOwE2T0fkaCJCRk4+QzsEvOarzYsKo2V5fTCucMZSTrqPn Yudg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750190121; x=1750794921; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+b0u5kH+1Cfv8cBpS3NLB7raOI4Vvq4Dn93RgazM8yQ=; b=RKNwm8nYizK8OCSwAuxnZ6AYKHNUmCHbrBSuU73zviJ2XjuLpMOgQjV3RE+/rqjteF PtLK2tKWwjCZQC/UJZp1BXwMYyi3uRR3GY7cb7anX9tAVJFMbGJgKGjHSpyPIBurrmip /UcJz8bRdI0BwEvETiHDExWSdG8kz6v2NqogNc5nMVS/o0mjE7GidI6jHLgxNd0rIz0T 00/c1c77C+OGoY/KNg3uX6+k2hoZ/0dmvHy+YTNzsEQ/tAaAUJeESZuZeft9PRgkQbxR MoLbCiLGeFu6vtObIHfkZE08SDeZhBsl3K2E//t1uhfQfYGSlYXKiMp9SuNu2HRIbm+P VH7A== X-Gm-Message-State: AOJu0Yz6bUGX/WrbWIT1NsnkuitDTgGcW912/dT4rbZSuPhEud9oIPlY U/5YYznCv2CROy2j096HyW5C3w82opziNjJKOx0HpadIO8a/crLf8233/h8onycxN+YlDr0oZbu 1uNfRolI0Iy2CSVtu9e1296jL4lOr+V6z0P5n2Mk= X-Gm-Gg: ASbGncsZLF2iedGYfg7vjwDJIDNIbk7v8HvDAZxgZX7ourmnn1acdUL2AKnB5+jjqOb mXcoVt2h82FwVg+YxAAFhDxldMIxmEFljVzqkwBkNQvdgkiZ4ztDBkaENKckzpSubi0gmoizjOO yeYRSnHrtG6ENasom7Y86fC6rCIPauecFCMGO8Z9o9d3fG X-Google-Smtp-Source: AGHT+IEhntYsishCIyo/kiIPeQyYUpppMmcjg/jw58o5I6RxdQfRhsDqlMSVlOli1llmWa6d3vBn8+gvxDSyqG41rpI= X-Received: by 2002:a2e:8e6d:0:b0:32b:7111:95a8 with SMTP id 38308e7fff4ca-32b71119a3emr8107821fa.39.1750190121082; Tue, 17 Jun 2025 12:55:21 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Tue, 17 Jun 2025 15:54:43 -0400 X-Gm-Features: AX0GCFs6NkAfYW56fwODBN8ZljAxCf0N2K2zbAWeqr5LANrEEFWew8kKAi930mc Message-ID: Subject: [PHP-DEV] Pre-RFC: dd() and dump() functions for PHP core To: internals@lists.php.net Content-Type: multipart/alternative; boundary="00000000000074e71b0637c9e4f4" From: braunson@gmail.com (Braunson Yager) --00000000000074e71b0637c9e4f4 Content-Type: text/plain; charset="UTF-8" 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 ecosystem, suggesting strong demand for better debugging primitives. *Proposal Overview*- dd($var, ...$vars) - "dump and die" - outputs formatted debug info and terminates execution - dump($var, ...$vars) - outputs formatted debug info and continues execution *Enhanced Features Over Existing Solutions*- Native performance (no userland overhead) - Stack trace integration - Memory usage reporting - Execution timing (potentially) - Better CLI formatting *Why Core vs Userland?*Similar to how var_dump() provides basic introspection, these functions would offer enhanced debugging capabilities that benefit the entire ecosystem, not just framework users. *Implementation* I'm seeking collaboration with an experienced PHP core developer for the C implementation. I can handle the RFC documentation, testing, etc. I have experience with the Laravel/Symfony codebases. *Before drafting a formal RFC, I'd appreciate feedback on:*1. General appetite for enhanced debugging functions in core 2. Concerns about naming conflicts with existing userland helpers 3. Preferred feature scope Thoughts? Best regards, Braunson Yager --00000000000074e71b0637c9e4f4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi inte= rnals,

I'd like to gauge interest in adding two debugging functi= ons 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 ecosystem, suggestin= g strong demand for better debugging primitives.

Proposal Overvie= w
- dd($var, ...$vars) - "dump and die" - outputs formatte= d debug info and terminates execution
- dump($var, ...$vars) - outputs f= ormatted debug info and continues execution

Enhanced Features Ove= r Existing Solutions
- Native performance (no userland overhead)
= - Stack trace integration
- Memory usage reporting
- Execution timing= (potentially)
- Better CLI formatting

Why Core vs Userland?Similar to how var_dump() provides basic introspection, these functio= ns would offer enhanced debugging capabilities that benefit the entire ecos= ystem, not just framework users.

Implementation
I'm se= eking collaboration with an experienced PHP core developer for the C implem= entation. I can handle the RFC documentation, testing, etc.=C2=A0I have exp= erience with the Laravel/Symfony codebases.

Before drafting a for= mal RFC, I'd appreciate feedback on:
1. General appetite for enh= anced debugging functions in core
2. Concerns about naming conflicts wit= h existing userland helpers
3. Preferred feature scope

Thoughts?<= br>
Best regards,
Braunson Yager
--00000000000074e71b0637c9e4f4--