mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
18 lines
386 B
PHP
18 lines
386 B
PHP
--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);
|
|
}
|
|
}
|
|
|
|
set_error_handler(array(new test(), "hdlr"));
|
|
|
|
trigger_error("test");
|
|
?>
|
|
--EXPECTF--
|
|
[1024] errstr: test, errfile: %s, errline: %d
|
|
|