Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 713a3fc58c
Fetching contributors…

Cannot retrieve contributors at this time

file 16 lines (14 sloc) 0.386 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
--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
Something went wrong with that request. Please try again.