1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 00:18:23 +02:00
Files
archived-php-src/ext/hash/tests/hash_copy_002.phpt
T
2018-10-14 12:07:20 -03:00

22 lines
378 B
PHP

--TEST--
Hash: hash_copy() errors
--FILE--
<?php
$r = hash_init("md5");
var_dump(hash_copy());
var_dump(hash_copy($r));
var_dump(hash_copy($r, $r));
echo "Done\n";
?>
--EXPECTF--
Warning: hash_copy() expects exactly 1 parameter, 0 given in %s on line %d
NULL
object(HashContext)#%d (0) {
}
Warning: hash_copy() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Done