1--TEST-- 2Hash: Attempt to reuse a closed hash context 3--FILE-- 4<?php 5 6$h = hash_init('md5'); 7hash_final($h); 8try { 9 hash_update($h, 'foo'); 10} 11catch (\Error $e) { 12 echo $e->getMessage() . "\n"; 13} 14 15?> 16--EXPECT-- 17hash_update(): Argument #1 ($context) must be a valid Hash Context resource 18