mirror of
https://github.com/php/php-src.git
synced 2024-10-22 08:47:29 +00:00
21 lines
378 B
Plaintext
21 lines
378 B
Plaintext
|
--TEST--
|
||
|
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
|
||
|
resource(%d) of type (Hash Context)
|
||
|
|
||
|
Warning: hash_copy() expects exactly 1 parameter, 2 given in %s on line %d
|
||
|
NULL
|
||
|
Done
|