mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
ec54ffad1e
Fixes oss-fuzz #39406.
19 lines
293 B
PHP
19 lines
293 B
PHP
--TEST--
|
|
BIND_STATIC may destroy a variable with a throwing destructor
|
|
--FILE--
|
|
<?php
|
|
class Test {
|
|
function __destruct() {
|
|
throw new Exception("Foo");
|
|
}
|
|
}
|
|
try {
|
|
$new = new Test;
|
|
static $new;
|
|
} catch (Exception $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Foo
|