Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7153 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15836 invoked by uid 1010); 17 Jan 2004 16:05:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15812 invoked from network); 17 Jan 2004 16:05:50 -0000 Received: from unknown (HELO smtp2.netcologne.de) (194.8.194.218) by pb1.pair.com with SMTP; 17 Jan 2004 16:05:50 -0000 Received: from localhost.localdomain (xdsl-213-168-109-104.netcologne.de [213.168.109.104]) by smtp2.netcologne.de (Postfix) with SMTP id 115A739DEC; Sat, 17 Jan 2004 17:05:49 +0100 (MET) Date: Sat, 17 Jan 2004 17:05:48 +0100 To: Andrey Hristov Cc: internals@lists.php.net Message-ID: <20040117170548.478e6330.paj@pearfr.org> In-Reply-To: <4009585D.4050906@hristov.com> References: <4009585D.4050906@hristov.com> 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: Re: [PHP-DEV] Casting of objects to array exports private/protected data From: paj@pearfr.org (Pierre-Alain Joye) On Sat, 17 Jan 2004 16:44:29 +0100 Andrey Hristov wrote: > IMO, when casting to array with (array) only the public-ly visible > members should returned. Dunno, E_STRICT (as you can access them without notice/warning without this flag)? In the same manner: dump(); ?> a var_dump should dump protected props from the parent class as they are visible. Note the "funny" thing is that var_dump() alone do not display the public|protected props, whatever is the context call. IMHO, that sounds not very consistent, but only imho... pierre