Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72466 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8664 invoked from network); 11 Feb 2014 19:03:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2014 19:03:12 -0000 Authentication-Results: pb1.pair.com header.from=happy.melon.wiki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=happy.melon.wiki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.169 as permitted sender) X-PHP-List-Original-Sender: happy.melon.wiki@gmail.com X-Host-Fingerprint: 209.85.216.169 mail-qc0-f169.google.com Received: from [209.85.216.169] ([209.85.216.169:58897] helo=mail-qc0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/B9-62230-FE37AF25 for ; Tue, 11 Feb 2014 14:03:12 -0500 Received: by mail-qc0-f169.google.com with SMTP id w7so13874095qcr.0 for ; Tue, 11 Feb 2014 11:03:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=MYO4Y4260LCMVgerBtuy04ieVHLkpWzysDnzRhAGFS4=; b=ejtBkIdvkjolnsKZe4Nxk2/063YNeOCj3ef2DXgSZfWeBwfGuXOjcOCea4r6AgqG9g zirdU7NsG2ZmjQkxXWdo33c9W/S1ItHMaDvLR6012NMqiAfoG1UwYKdBrK8lFFxGS29k TZTHzEaHiGzKik2czvV8erMDOz8ZODRFsvS3DziRcsHJyDEUUo6QJ6IaKIZOWPoW8BDg sxZUijS+rzPA4NaiX43I3dxBLWIoPNEpGQj7MFZ5M+/TcFTb2Uci1kMIamJsAAkT/76j 2JmZ2PXyNNvW0kMQClo61bs0dvYhk4/VWo/7/BDeI+l9HS4aEuaQk22PnmXvxugsd76Z u3dw== MIME-Version: 1.0 X-Received: by 10.140.34.99 with SMTP id k90mr27291615qgk.15.1392145389296; Tue, 11 Feb 2014 11:03:09 -0800 (PST) Sender: happy.melon.wiki@gmail.com Received: by 10.140.86.74 with HTTP; Tue, 11 Feb 2014 11:03:09 -0800 (PST) In-Reply-To: <52FA6C08.5050207@googlemail.com> References: <52F00437.7010903@googlemail.com> <52F005E6.6090702@googlemail.com> <52F0D36B.7010905@googlemail.com> <52F29880.6050304@googlemail.com> <52F29B04.9080609@googlemail.com> <52F9D766.1090902@googlemail.com> <52FA6C08.5050207@googlemail.com> Date: Tue, 11 Feb 2014 19:03:09 +0000 X-Google-Sender-Auth: T-zTXWOdOF4G_eBGtGbUvcZZvxc Message-ID: To: Crypto Compress Cc: Sara Golemon , PHP Developers Mailing List Content-Type: multipart/alternative; boundary=001a11c0e08867a0e804f2261ba4 Subject: Re: [PHP-DEV] [RFC] [VOTE] __debugInfo() From: happy.melon.wiki+gb@gmail.com (George Bond) --001a11c0e08867a0e804f2261ba4 Content-Type: text/plain; charset=ISO-8859-1 On 11 February 2014 18:29, Crypto Compress wrote: > Imagine a proxy object (orm). > > Usecase #1: end-user > Sees only proxied object. No cluttered object graph. Very useful! > > Usecase #2: new maintainer > Hunting bug in proxy object. No way to dump internals at all. Wait what? > Solution: 1: Search for "__debugInfo" in project 2: Comment out function 3: Squash bug 4: Revert library code If you're bug hunting with var_dump(), you are not adverse to temporarily hacking at source code to add debug statements at weird places. You're probably also hacking out all your normal exception handling and output formatting to get the dump to display on screen. So why wouldn't you be prepared to hack this too? --G --001a11c0e08867a0e804f2261ba4--