mirror of
https://github.com/php/php-src.git
synced 2026-04-27 18:23:26 +02:00
033cafacbd
The hash extension is always available since PHP-7.4. The symbol HAVE_HASH_EXT is kept for BC reasons and removed in PHP-8.0. This patch also removes the PHAR_HASH_OK since it is no longer relevant.
11 lines
270 B
PHP
11 lines
270 B
PHP
--TEST--
|
|
Hash: Attempt to reuse a closed hash context
|
|
--FILE--
|
|
<?php
|
|
|
|
$h = hash_init('md5');
|
|
hash_final($h);
|
|
hash_update($h, 'foo');
|
|
--EXPECTF--
|
|
Warning: hash_update(): supplied resource is not a valid Hash Context resource in %s%eext%ehash%etests%ereuse.php on line %d
|