Lines Matching refs:uniqid
2 Test uniqid() function : error conditions
5 /* Prototype : string uniqid ([ string $prefix= "" [, bool $more_entropy= false ]] )
7 * Source code: ext/standard/uniqid.c
9 echo "*** Testing uniqid() : error conditions ***\n";
11 echo "\n-- Testing uniqid() function with more than expected no. of arguments --\n";
15 var_dump(uniqid($prefix, $more_entropy, $extra_arg));
17 echo "\n-- Testing uniqid() function with invalid values for \$prefix --\n";
23 uniqid($array, false);
24 uniqid($res, false);
25 uniqid($obj, false);
32 *** Testing uniqid() : error conditions ***
34 -- Testing uniqid() function with more than expected no. of arguments --
36 Warning: uniqid() expects at most 2 parameters, 3 given in %s on line %d
39 -- Testing uniqid() function with invalid values for $prefix --
41 Warning: uniqid() expects parameter 1 to be string, array given in %s on line %d
43 Warning: uniqid() expects parameter 1 to be string, resource given in %s on line %d
45 Warning: uniqid() expects parameter 1 to be string, object given in %s on line %d