Re: [RFC] Allow non-variable arguments to empty() and isset()
| From: | Laruence | Date: | Wed, 02 May 2012 08:46:11 +0000 |
| Subject: | Re: [RFC] Allow non-variable arguments to empty() and isset() | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60414@lists.php.net to get a copy of this message | ||
On Mon, Apr 30, 2012 at 3:50 PM, Patrick ALLAERT <patrickallaert@php.net> wrote:
> Hi,
>
> 2012/4/12 Nikita Popov <nikita.ppv@googlemail.com>:
>> PS: I added isset() too, to address the consistency concerns mentioned on IRC.
>
> I would have voted +1 if it didn't contain the isset() change. None of
> the examples used in the isset_with_expr.phpt test seems logic to me.
Hi:
isset and empty are generally think as a pair, and the both even
share one ZEND_OP: ZEND_ISSET_ISEMPTY_VAR
so I think if you want to change empty, you should also change isset.
thanks
>
> Care to explain the consistency concerns here?
>
> Patrick
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
Laruence Xinchen Hui
http://www.laruence.com/