mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
18 lines
263 B
PHP
18 lines
263 B
PHP
--TEST--
|
|
Hash: bug #12186 - segfault when cloning a finalized context
|
|
--FILE--
|
|
<?php
|
|
|
|
$c = hash_init('sha1');
|
|
hash_final($c);
|
|
|
|
try {
|
|
clone $c;
|
|
} catch (Throwable $ex) {
|
|
echo $ex->getMessage() . "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Cannot clone a finalized HashContext
|