Re: Implicit isset in ternary operator

From: Date: Thu, 02 Aug 2012 07:15:38 +0000
Subject: Re: Implicit isset in ternary operator
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-61948@lists.php.net to get a copy of this message
So... I was thinking of proposing that we perhaps leave Arrays as is w/r/t undefined indices, while fixing up the ArrayObject gaps and making that the "smart" one (wrap/box in an AO if you want expanded/overloadable functionality). That idea was based on my belief that ArrayObject::offsetGet already failed gracefully, from the docs: "Returns: The value at the specified index or FALSE." Don't think so. Seems like it returns NULL and fires a notice as with an array. Doc bug I guess, as as returning FALSE would be pretty ambiguous. -- S.

« previous php.internals (#61948) next »