summaryrefslogtreecommitdiff
path: root/Zend/tests/bug72162.phpt
blob: 721b0fc306804e8537d0611f6f1a9e139ce2be7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #72162 (use-after-free - error_reporting)
--FILE--
<?php
error_reporting(E_ALL);
$var11 = new StdClass();

try {
    $var16 = error_reporting($var11);
} catch (TypeError $exception) {
    echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
error_reporting(): Argument #1 ($error_level) must be of type ?int, stdClass given