Re: Re: 5dee3c11 break

From: Date: Tue, 06 May 2014 13:11:06 +0000
Subject: Re: Re: 5dee3c11 break
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-73976@lists.php.net to get a copy of this message
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)

« previous php.internals (#73976) next »