1--TEST--
2Imagick don't borg the error handler
3--SKIPIF--
4<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
5--FILE--
6<?php
7error_reporting( E_ALL );
8
9ini_set( "display_errors", true );
10
11try {
12    $f = new Imagick('http://any/url/here');
13}
14catch(ImagickException $ie) {
15    echo "Normal exception".PHP_EOL;
16}
17
18try {
19	$x = @file ('non_existent_file');
20	echo "Normal warning is suppressed".PHP_EOL;
21}
22catch(\Exception $e) {
23	echo "Abnormal exception of type: ".get_class($e)."\n";
24	echo $e->getMessage();
25}
26
27?>
28--EXPECTF--
29Normal exception
30Normal warning is suppressed
31