Re: Unexpected "silent" type-cast with initialized but un-set members

From: Date: Thu, 16 Feb 2006 11:55:36 +0000
Subject: Re: Unexpected "silent" type-cast with initialized but un-set members
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-21879@lists.php.net to get a copy of this message
On Thursday 16 February 2006 12:39, Antony Dovgal wrote: > <?php > $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

« previous php.internals (#21879) next »