Closed
Description
Description
The following code:
<?php
set_error_handler(function($_, $m) { throw new Exception($m); });
class Test1 {
static function test() {
call_user_func("static::ok");
}
}
class Test2 extends Test1 {
static function ok() {
}
}
Test2::test();
Resulted in this output:
php: Zend/zend_vm_execute.h:7469: int ZEND_INIT_USER_CALL_SPEC_CONST_CONST_HANDLER(zend_execute_data *): Assertion `!(((zend_executor_globals *) (((char*) _tsrm_ls_cache)+(executor_globals_offset)))->exception)' failed.
Aborted (core dumped)
PHP Version
nightly
Operating System
No response