mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
7aacc705d0
Closes GH-5958
18 lines
292 B
PHP
18 lines
292 B
PHP
--TEST--
|
|
Hash: Attempt to reuse a closed hash context
|
|
--FILE--
|
|
<?php
|
|
|
|
$h = hash_init('md5');
|
|
hash_final($h);
|
|
try {
|
|
hash_update($h, 'foo');
|
|
}
|
|
catch (\Error $e) {
|
|
echo $e->getMessage() . "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
hash_update(): Argument #1 ($context) must be a valid Hash Context resource
|