Skip to content

Assertion failure in Zend/zend_vm_execute.h:2915 #16412

@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
namespace X;
$iterator =
    new \RegexIterator(
        new \ArrayIterator(['A.phpt', 'B.phpt', 'C.phpt']),
        '/\.phpt$/'
    )
;
foreach ($iterator as $foo) {
    var_dump($foo);
    preg_replace('/\.phpt$/', '', '');
}
echo "Done", PHP_EOL;
echo preg_match('/a{1,3}b/U', 'ab');
echo(1);
?>

Resulted in this output:

php: Zend/zend_vm_execute.h:2915: int zend_fe_fetch_object_helper_SPEC(zend_execute_data *): Assertion `zval_get_type(&(*(array))) == 8' failed.
Aborted (core dumped)

To reproduce:

-d "zend_extension=/php-src/modules/opcache.so" -d "opcache.enable=1" -d "opcache.enable_cli=1" -d "opcache.jit=1111"

PHP Version

nightly

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions