php-src/ext/opcache/tests/preload_error_handler.inc
Nikita Popov d1e956ff31 Fixed bug #81353
A user-defined error handler should not be invoked for preload
warnings. We are in a partially shut-down state at that point.
2021-08-16 15:04:17 +02:00

9 lines
148 B
PHP

<?php
set_error_handler(function($_, $m) {
static $x;
var_dump($m);
});
opcache_compile_file(__DIR__ . '/preload_error_handler_ind.inc');