Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88742 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90262 invoked from network); 10 Oct 2015 20:22:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Oct 2015 20:22:25 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:41840] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/B5-44453-08379165 for ; Sat, 10 Oct 2015 16:22:25 -0400 Received: by mail.experimentalworks.net (Postfix, from userid 1003) id C5E394E999; Sat, 10 Oct 2015 22:22:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on km31408.keymachine.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=4.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 X-Spam-HAM-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP Received: from [192.168.2.34] (ppp-93-104-16-73.dynamic.mnet-online.de [93.104.16.73]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id D27BA4E999; Sat, 10 Oct 2015 22:22:24 +0200 (CEST) Message-ID: <1444508539.9494.7.camel@kuechenschabe> To: Mattias Gonzalez Cc: internals@lists.php.net Date: Sat, 10 Oct 2015 22:22:19 +0200 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-AylMGIFFjrccLbcZH8pl" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Subject: Re: [PHP-DEV] New function proposal From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) --=-AylMGIFFjrccLbcZH8pl Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2015-10-08 at 12:05 -0300, Mattias Gonzalez wrote: > I wanted to propose the "var_die($var)" functionallity. This can easily be done in userland. There is no relevant performance gain. I see no reason to add this to core. Having this in your userland library has the benefit that you can do exactly what you need. A general function needs a way to set a return code (for CLI usage), configuration to wrap output in
 or similar.

johannes


--=-AylMGIFFjrccLbcZH8pl
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQEcBAABAgAGBQJWGXN7AAoJEH3sTmn8nIPXTr4H/3w0iIHE4IdDqwkzgXOBZzJf
HeG315FwAowPML04rqaTTC0/3n2/QfgXEQ3J29iZmc/t/qjIhEJugXpyMqFpLSBb
g2Z6ZCuWhnuJ5eyEtMnAKRnjo4j+YlnemSsxLMI36al8W0Mg9X1Edl3p2R1GkzAf
z8hXSBfXmWr4FIRUqVS89v9TvT74pjOvpAz7Vm5zVOk7ZCWZRnTbdytwJ4CoTTaJ
QpW6zuqFmWSB/k5vVIadd6efQS0As/fcLz3qsFu9iYevpoV1LMUmy6DLykJoyObj
VKSTL+Yq8f+3KCM5uI9qwu/xaYPMGWiDbCGWLxQ2//2xSXhhTjF/VrWd+SEwlPw=
=9saz
-----END PGP SIGNATURE-----

--=-AylMGIFFjrccLbcZH8pl--