Re: Bug#28151 Writing to Uninitialized Arrays

From: Date: Mon, 26 Apr 2004 17:27:15 +0000
Subject: Re: Bug#28151 Writing to Uninitialized Arrays
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-9569@lists.php.net to get a copy of this message
> >Here's what I think is the fix for 28151 (I have no strong feelings on > >whether or not it belongs in the engine, but I am +1 on it personally). > >Zend guys? > > > PHP has always allowed defining arrays on demand. This would break many > scripts and I don't see any reason to force people to define variables as > arrays, especially when these variables are undefined. > As I said, I have no >strong< feelings on it, but how about E_STRICT? And more to the point of my original posting (which I didn't state clearly): Is that, in fact, the right place for such a notice to be? I'm more trying to sanity check my understanding of the engine here than anything. -Sara

« previous php.internals (#9569) next »