1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00
Files
archived-php-src/ext/hash/tests/reuse.phpt
2020-02-03 22:52:20 +01:00

17 lines
283 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(): supplied resource is not a valid Hash Context resource