1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 16:08:35 +02:00
Files
archived-php-src/ext/hash/tests/new-context.phpt
T
Peter Kokot 033cafacbd Sync HAVE_HASH, HAVE_HASH_EXT, PHAR_HASH_OK symbols
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.
2019-06-27 23:25:33 +02:00

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