summaryrefslogtreecommitdiff
path: root/src/tests/phplog_catch.phpt
blob: 5b8d4f5626b8a7b06c8676d3131469d2715e7c04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Check if error handling doesn't eat SP errors
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/phplog.ini
--FILE--
<?php 
set_exception_handler(function ($exception) {
    die('handler: fail');
});
try {
	var_dump(unserialize('s:1:"a";'));
} catch(Exception $e) {
	die("catch: fail");
}
die("after: fail")
?>
--EXPECTF--
Fatal error: [snuffleupagus][0.0.0.0][unserialize][drop] The serialized object is too small. in %s/tests/phplog_catch.php on line %d