Re: Possible Bug or Bad Expectations?

From: Date: Sun, 12 Jul 2015 08:13:29 +0000
Subject: Re: Possible Bug or Bad Expectations?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-87117@lists.php.net to get a copy of this message
Hi! > Is this a bad expectation to have? Or should isset() silence the nested > undefined index as well? I also realized this has always been the That would be really hard to do IMO. Imagine $bar being an object and implementing array access - so it needs somehow know that when offsetGet is called, it's in isset expression context somewhere upstream? While it may be nice in theory, in practice I'm not sure it's doable - or worth making doable. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#87117) next »