Re: Re: 5dee3c11 break
On Tue, May 6, 2014 at 6:43 AM, Dmitry Stogov <dmitry@zend.com> wrote:
> zend_std_has_dimension() doesn't know what (check_empty == 2) means.
>
> check_empty == 0 - ISSET => we don't need to call offsetGet() and relay on
> offsetExists() return value.
> check_empty == 1 - ISEMPTY => we should call offsetGet() after
> offsetExists().
>
> NULL values should be handled by offsetExists().
>
I am a bit curious, isset checks that the variable exists and is not
null; empty checks that the variable exists and is not empty. Why does
one call offsetGet and not the other? Both look at the value.
Sorry if I missed that bit of conversation.
Thread (17 messages)