mirror of
https://github.com/php/php-src.git
synced 2026-04-23 16:08:35 +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.
13 lines
253 B
PHP
13 lines
253 B
PHP
--TEST--
|
|
Hash: Attempt to instantiate a HashContext directly
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
new HashContext;
|
|
} catch (Error $e) {
|
|
echo "Exception: {$e->getMessage()}\n";
|
|
}
|
|
--EXPECT--
|
|
Exception: Call to private HashContext::__construct() from invalid context
|