ru_php/ext/opcache/tests/gh17422/005.phpt

17 lines
319 B
PHP

--TEST--
GH-17422 (OPcache bypasses the user-defined error handler for deprecations) - require
--FILE--
<?php
set_error_handler(static function (int $errno, string $errstr, string $errfile, int $errline) {
require_once __DIR__ . "/dummy.inc";
});
require __DIR__ . "/warning.inc";
dummy();
?>
--EXPECT--
OK: dummy