mirror of
https://github.com/php/php-src.git
synced 2026-04-20 14:31:06 +02:00
We need to initialize the result variable in the exceptional case as well. Fixes oss-fuzz #25526.
19 lines
266 B
PHP
19 lines
266 B
PHP
--TEST--
|
|
Handling of undef variable exception in JMP_NULL
|
|
--FILE--
|
|
<?php
|
|
|
|
set_error_handler(function($_, $m) {
|
|
throw new Exception($m);
|
|
});
|
|
|
|
try {
|
|
$foo?->foo;
|
|
} catch (Exception $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Undefined variable $foo
|