mirror of
https://github.com/php/php-src.git
synced 2024-12-19 06:50:17 +08:00
5770b66722
Closes GH-5847
16 lines
338 B
PHP
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
|