Req #76148 [Com]: Add array_key_exists() to the list of specialy compiled functions
| From: | love at sickpeople dot se | Date: | Wed, 29 Jan 2020 15:49:50 +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-225221@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: love at sickpeople dot se
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:
This and the related bug can be closed now as of PHP 7.4.
Previous Comments:
------------------------------------------------------------------------
[2018-08-23 00:50:31] carusogabriel@php.net
Related To: Bug #71239
------------------------------------------------------------------------
[2018-08-08 15:07:06] nicolas dot grekas+php at gmail dot com
Implemented in https://github.com/php/php-src/pull/3360
------------------------------------------------------------------------
[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