Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88737 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64510 invoked from network); 10 Oct 2015 14:30:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Oct 2015 14:30:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=fsb@thefsb.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=fsb@thefsb.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain thefsb.org designates 173.203.187.107 as permitted sender) X-PHP-List-Original-Sender: fsb@thefsb.org X-Host-Fingerprint: 173.203.187.107 smtp107.iad3a.emailsrvr.com Linux 2.6 Received: from [173.203.187.107] ([173.203.187.107:35198] helo=smtp107.iad3a.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 12/02-44453-6F029165 for ; Sat, 10 Oct 2015 10:30:15 -0400 Received: from smtp30.relay.iad3a.emailsrvr.com (localhost.localdomain [127.0.0.1]) by smtp30.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id 595EE380377; Sat, 10 Oct 2015 10:30:12 -0400 (EDT) Received: by smtp30.relay.iad3a.emailsrvr.com (Authenticated sender: fsb-AT-thefsb.org) with ESMTPSA id 26A52380376; Sat, 10 Oct 2015 10:30:12 -0400 (EDT) X-Sender-Id: fsb@thefsb.org Received: from yossy.local (c-73-4-147-142.hsd1.ma.comcast.net [73.4.147.142]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:587 (trex/5.4.2); Sat, 10 Oct 2015 14:30:12 GMT To: Mattias Gonzalez , internals@lists.php.net References: Message-ID: <561920E9.1040708@thefsb.org> Date: Sat, 10 Oct 2015 10:30:01 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: New function proposal From: fsb@thefsb.org (Tom Worster) On 10/8/15 11:05 AM, Mattias Gonzalez wrote: > I wanted to propose the "var_die($var)" functionallity. > My mates and i use a lot var_dump($var);die; > > Since die() wont print an array just a string, i think it´ll be very useful. > > It should do the var_dump($var);and die(); > > what do you think? I think we easily achieve the same ends (efficiency in manual debugging) without adding functions to PHP. For example, I have shortcuts in my editor to insert the code to: - dump with or without HTML formatting - dump and die - eval(\Psy\sh()); Even in difficult environments like live remote debugging in a term this is usually feasible. Only very old editors can't cope (e.g. heirloom vi) and then there are other options to send configured strings. A carpenter knows how to use tools. Tom