Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36691 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95593 invoked from network); 30 Mar 2008 20:06:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Mar 2008 20:06:24 -0000 X-Host-Fingerprint: 24.228.80.153 ool-18e45099.dyn.optonline.net Received: from [24.228.80.153] ([24.228.80.153:24130] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/C2-12628-0C2FFE74 for ; Sun, 30 Mar 2008 15:06:24 -0500 Message-ID: <07.C2.12628.0C2FFE74@pb1.pair.com> To: internals@lists.php.net Date: Sun, 30 Mar 2008 16:06:22 -0400 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041206 Thunderbird/1.0 Mnenhy/0.6.0.104 MIME-Version: 1.0 References: <7e270cea0803270014r246e68aej6d54e48c24f333fe@mail.gmail.com> <47EC20D1.3070809@zend.com> In-Reply-To: <47EC20D1.3070809@zend.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Posted-By: 24.228.80.153 Subject: Re: [PHP-DEV] making var_dump and var_export even better From: edwardzyang@thewritingpot.com ("Edward Z. Yang") Stanislav Malyshev wrote: >> Also, about circular references. Isn't it possible to reuse the >> circular recognition from print_r and actually write out a reference >> to the offending piece? > > For var_export it isn't possible since there's no way to refer to the > value being exported. I know this is a little hackish, but what if we inserted a NULL in that location, and then appended a few PHP statements that created the references? -- Edward Z. Yang GnuPG: 0x869C48DA HTML Purifier Anti-XSS Filter [[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]