Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21879 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53216 invoked by uid 1010); 16 Feb 2006 11:55:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 53201 invoked from network); 16 Feb 2006 11:55:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Feb 2006 11:55:40 -0000 X-Host-Fingerprint: 195.190.153.92 mg002.armadahosting.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from ([195.190.153.92:65323] helo=mg002.armadahosting.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 92/A0-48334-C3864F34 for ; Thu, 16 Feb 2006 06:55:40 -0500 Received: from fangel.idg.dk (unknown [62.199.138.131]) by mg002.armadahosting.com (Postfix) with ESMTP id E43EA7A84D; Thu, 16 Feb 2006 12:51:10 +0100 (CET) Received: by fangel.idg.dk (Postfix, from userid 1000) id 8277F54E28; Thu, 16 Feb 2006 12:55:37 +0100 (CET) Reply-To: fangel@nable.dk To: Antony Dovgal Date: Thu, 16 Feb 2006 12:55:36 +0100 User-Agent: KMail/1.8 Cc: php internals References: <200602161232.48780.fangel@nable.dk> <43F4647B.9030506@zend.com> In-Reply-To: <43F4647B.9030506@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200602161255.37040.fangel@nable.dk> Subject: Re: [PHP-DEV] Unexpected "silent" type-cast with initialized but un-set members From: fangel@nable.dk (Morten Fangel) On Thursday 16 February 2006 12:39, Antony Dovgal wrote: > $a->bar = 1; > var_dump($a); > ?> > This code is much simpler, huh? Yeah, I must have been blinded by the lights. It merely resembles $foo['bar'] = 'baz'; Where $foo is cast as an array without the need to do $foo = array(); first. So I guess there is no need for a notice when you apply the same "pattern" to an object. Wow - what a great debut on the internals list, huh? ;) Morten