Req #76148 [Com]: Add array_key_exists() to the list of specialy compiled functions
| From: | nicolas dot grekas+php at gmail dot com | Date: | Wed, 08 Aug 2018 15:07:06 +0000 |
| Subject: | Req #76148 [Com]: Add array_key_exists() to the list of specialy compiled functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-216678@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76148&edit=1
ID: 76148
Comment by: nicolas dot grekas+php at gmail dot com
Reported by: nicolas dot grekas+php at gmail dot com
Summary: Add array_key_exists() to the list of specialy
compiled functions
Status: Open
Type: Feature/Change Request
Package: Scripting Engine problem
PHP Version: master-Git-2018-03-26 (Git)
Block user comment: N
Private report: N
New Comment:
Implemented in https://github.com/php/php-src/pull/3360
Previous Comments:
------------------------------------------------------------------------
[2018-03-26 07:54:41] nicolas dot grekas+php at gmail dot com
Similar to https://bugs.php.net/71239
------------------------------------------------------------------------
[2018-03-26 07:22:00] nicolas dot grekas+php at gmail dot com
Description:
------------
zend_compile.c (zend_try_compile_special_func() in https://github.com/php/php-src/blob/master/Zend/zend_compile.c)
turns come function calls into direct opcode operations.
It would be great to add array_key_exists() to the list, because this function is used quite often
in tight loops, for its ability to check nulled values in arrays (contrary to isset()).
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76148&edit=1