xref: /PHP-7.2/ext/hash/tests/reuse.phpt (revision 17f6f713)
1--TEST--
2Attempt to reuse a closed hash context
3--SKIPIF--
4<?php if (!extension_loaded('hash')) echo 'skip';
5--FILE--
6<?php
7
8$h = hash_init('md5');
9hash_final($h);
10hash_update($h, 'foo');
11--EXPECTF--
12Warning: hash_update(): supplied resource is not a valid Hash Context resource in %s%eext%ehash%etests%ereuse.php on line %d
13