1--TEST-- 2Bug #72162 (use-after-free - error_reporting) 3--FILE-- 4<?php 5error_reporting(E_ALL); 6$var11 = new StdClass(); 7 8try { 9 $var16 = error_reporting($var11); 10} catch (TypeError $exception) { 11 echo $exception->getMessage() . "\n"; 12} 13?> 14--EXPECT-- 15error_reporting(): Argument #1 ($error_level) must be of type ?int, stdClass given 16