Req #76148 [Opn]: Add array_key_exists() to the list of specialy compiled functions
| From: | nicolas dot grekas+php at gmail dot com | Date: | Mon, 26 Mar 2018 07:54:42 +0000 |
| Subject: | Req #76148 [Opn]: 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-214480@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
User updated 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:
Similar to https://bugs.php.net/71239
Previous Comments:
------------------------------------------------------------------------
[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