diff options
| author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-01-18 19:44:12 +0000 |
|---|---|---|
| committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-01-18 19:44:12 +0000 |
| commit | a395304c7245ec411e8c735c82734e1fd0c27725 (patch) | |
| tree | 289b5f364f91428dd3709414a2e9363e3274a3e7 | |
| parent | e2868b57885dac8a36593e2154c808038adc4cef (diff) | |
| download | php-git-a395304c7245ec411e8c735c82734e1fd0c27725.tar.gz | |
Added test case for bug #21094
| -rw-r--r-- | tests/lang/bug21094.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/lang/bug21094.phpt b/tests/lang/bug21094.phpt new file mode 100644 index 0000000000..266a1d6c8f --- /dev/null +++ b/tests/lang/bug21094.phpt @@ -0,0 +1,17 @@ +--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 + |
