Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72467 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10299 invoked from network); 11 Feb 2014 19:13:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2014 19:13:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=cryptocompress@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cryptocompress@googlemail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: cryptocompress@googlemail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:53092] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B1/1A-62230-E567AF25 for ; Tue, 11 Feb 2014 14:13:35 -0500 Received: by mail-wi0-f170.google.com with SMTP id hi5so64213wib.1 for ; Tue, 11 Feb 2014 11:13:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=MMaMCyQcYJlSGMQSIw1rlDzF3iPY8Z64ZcYE8KMetcY=; b=qDseph06UHgW24OoYiUH0/NNVRu8GdmO4kNMP0XVSfaeQ/gaML2KBMCwBo/zn6g5qB uR5G0kY7fedOt73iqazRvGRAV4mPHdVE9jHBa+3IXDHSsIe6YHlxvXAGRFzhg8j+bk55 9CH7XdNnn9Frfj2n+wK5BtmeDRY1lZOsU6dU7wushJRZLCejdJ/Xf2grtGxpY9h62iLC nfWrNwRb8k8+/fzekmU/T05purBE6TKq8gGTfC8eJ2eHTzC8fbFqpxeQ5SmyMSMctC/j 7+eCyf1/EMJ/9/5LthWcCGK1ZG3bzMfRPcOZal8z8LAdC1GMRCoj8ljL7XA7kKkTE0zh NRDA== X-Received: by 10.194.22.68 with SMTP id b4mr4135621wjf.6.1392146012322; Tue, 11 Feb 2014 11:13:32 -0800 (PST) Received: from [192.168.1.115] (mnch-5d8774be.pool.mediaWays.net. [93.135.116.190]) by mx.google.com with ESMTPSA id j9sm46177359wjz.13.2014.02.11.11.13.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Feb 2014 11:13:31 -0800 (PST) Message-ID: <52FA7649.3010108@googlemail.com> Date: Tue, 11 Feb 2014 20:13:13 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: George Bond CC: PHP Developers Mailing List 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] [VOTE] __debugInfo() From: cryptocompress@googlemail.com (Crypto Compress) > > 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. As this method has "debug" in it, it's purpose is uncontroversial bughinting. Isn't it? How many objects are in a avarage orm to temporarily be hacked? In comparison to var_dump($wholeObjectGraph) justifiable? > 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? Why display on screen? $foo->log(print_r($bar, true)); is impossible too.