[php-src] Issue #15982: Assertion failure in Zend/zend_vm_execute.h
| From: | YuanchengJiang | Date: | Sun, 22 Sep 2024 09:47:22 +0000 |
| Subject: | [php-src] Issue #15982: Assertion failure in Zend/zend_vm_execute.h | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247852@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/15982
Author: YuanchengJiang
### Description
The following code:
```php
<?php
$a = array('foo' => 'original.foo');
$ref = &$a;
extract($a, EXTR_REFS);
$fusion = $ref;
var_dump(array_find($fusion, function ($value, $key) {
return true;
}));
```
Resulted in this output:
```
php: Zend/zend_vm_execute.h:1361: int ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER(zend_execute_data *):
Assertion `(call->func->common.fn_flags & (1 << 12)) ? (zval_get_type(&(*(ret)))
== 10) : !(zval_get_type(&(*(ret))) == 10)' failed.
Aborted (core dumped)
```
### PHP Version
PHP 8.4.0-dev
### Operating System
ubuntu 22.04