1--TEST-- 2Bug #72162 (use-after-free - error_reporting) 3--FILE-- 4<?php 5error_reporting(E_ALL); 6$var11 = new StdClass(); 7$var16 = error_reporting($var11); 8?> 9--EXPECTF-- 10Fatal error: Uncaught Error: Object of class stdClass could not be converted to string in %s:%d 11Stack trace: 12#0 %s(%d): error_reporting(Object(stdClass)) 13#1 {main} 14 thrown in %s on line %d 15