summaryrefslogtreecommitdiff
path: root/ext/hash/tests/hash_copy_002.phpt
blob: aac4c3bdd87f41033fc7c3468ef540c58c569028 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
hash_copy() errors
--SKIPIF--
<?php extension_loaded('hash') or die('skip'); ?>
--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
resource(%d) of type (Hash Context)

Warning: hash_copy() expects exactly 1 parameter, 2 given in %s on line %d
NULL
Done