Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18232 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99849 invoked by uid 1010); 20 Aug 2005 03:30:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99830 invoked from network); 20 Aug 2005 03:30:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Aug 2005 03:30:36 -0000 Received: from ([127.0.0.1:27841]) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with ECSTREAM id 18/67-33075-BD3A6034 for ; Fri, 19 Aug 2005 23:30:35 -0400 X-Host-Fingerprint: 69.56.137.20 veteatr.nexcess.net Received: from ([69.56.137.20:52725] helo=veteatr.nexcess.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id A9/27-33075-EC1A6034 for ; Fri, 19 Aug 2005 23:21:50 -0400 Received: (qmail 6972 invoked by uid 108); 20 Aug 2005 03:21:47 -0000 Received: from ultrvet.nexcess.net (66.118.191.15) by veteatr.nexcess.net with SMTP; 20 Aug 2005 03:21:46 -0000 Received: (qmail 31671 invoked by uid 109); 20 Aug 2005 03:21:18 -0000 Received: from ip68-108-204-21.ph.ph.cox.net (ip68-108-204-21.ph.ph.cox.net [68.108.204.21]) by www.etnu.org (Horde) with HTTP for ; Fri, 19 Aug 2005 23:21:18 -0400 Message-ID: <20050819232118.bq57vq8uelhcw4wc@www.etnu.org> Date: Fri, 19 Aug 2005 23:21:18 -0400 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.1) Subject: Re: [PHP-DEV] Simplexml and xml namespaces From: etnu@etnu.org This is my first post here, so forgive me if I'm not doing this right. It seems like php objects need a magic function __dump or __debug or something similiar to handle these kinds of situations. I can see why this might be construed as hackish / lame, but by that token, var_dump itself is. It seems like the only alternative solution is to write special debugging functions for each class, which makes var_dump less useful than it could be. Maybe I'm crazy, but I always thought that var_dump should be used to really tell me as much as possible about any variable I passed in. If all I wanted was the array output, I could just as easily use print_r instead. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.