xref: /PHP-7.2/Zend/tests/bug72162.phpt (revision 727b422a)
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--
10Recoverable fatal error: Object of class stdClass could not be converted to string in %sbug72162.php on line %d
11