Skip to content

Assertion failure in ext/opcache/jit/zend_jit.c:2897 #16393

@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
ini_set('opcache.jit', 'tracing');
class Test {
}
$appendProp2 = (function() {
})->bindTo($test, Test::class);
$appendProp2();

Resulted in this output:

/php-src/ext/opcache/jit/zend_jit.c:2897: int zend_real_jit_func(zend_op_array *, zend_script *, const zend_op *): Assertion `!op_array->scope' failed.
Aborted (core dumped)

To reproduce:

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

PHP Version

nightly

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions