0
0
mirror of https://github.com/php/php-src.git synced 2024-12-19 06:50:17 +08:00
php-src/Zend/tests/bug72162.phpt
2020-07-21 14:47:03 +02:00

16 lines
338 B
PHP

--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