Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6937 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31908 invoked by uid 1010); 9 Jan 2004 17:53:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31882 invoked from network); 9 Jan 2004 17:53:08 -0000 Received: from unknown (HELO smtp1.netcologne.de) (194.8.194.112) by pb1.pair.com with SMTP; 9 Jan 2004 17:53:08 -0000 Received: from localhost.localdomain (xdsl-213-196-211-133.netcologne.de [213.196.211.133]) by smtp1.netcologne.de (Postfix) with SMTP id 3169138C11 for ; Fri, 9 Jan 2004 18:53:05 +0100 (MET) Date: Fri, 9 Jan 2004 18:53:05 +0100 To: internals@lists.php.net Message-ID: <20040109185305.5025d4a6.paj@pearfr.org> Organization: Freelancer X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: object handlers: get_properties, foreach and dumps behiavors From: paj@pearfr.org (Pierre-Alain Joye) Hello, What is the difference between a call to get_properties from a dump function (print_r,var_dump) and from a foreach? I got a weird behiavor using it with my date extension. The dumps work nicely as the foreach loops on the 1st property, endlessly. Implemention available in /pecl/date/date.c function date_properties_get (http://cvs.php.net/co.php/pecl/date/date.c?login=2&r=1.6) Any thought? pierre