TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
423 B
17 lines
423 B
--TEST--
|
|
Bug #21094 (set_error_handler not accepting methods)
|
|
--FILE--
|
|
<?php
|
|
class test {
|
|
function hdlr($errno, $errstr, $errfile, $errline) {
|
|
printf("[%d] errstr: %s, errfile: %s, errline: %d\n", $errno, $errstr, $errfile, $errline, $errstr);
|
|
}
|
|
}
|
|
|
|
function main() {
|
|
set_error_handler(array(new test(), "hdlr"));
|
|
trigger_error("test");
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
[1024] errstr: test, errfile: %s, errline: %d
|
|
|