1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 08:28:26 +02:00
Files
archived-php-src/ext/hash/tests/reuse.phpt
T

17 lines
284 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