Lines Matching refs:getrusage
2 Test getrusage() function : error conditions - incorrect number of args
4 <?php if (!function_exists("getrusage")) print "skip"; ?>
7 /* Prototype : array getrusage ([ int $who ] )
14 * Pass an incorrect number of arguments to getrusage() to test behaviour
17 echo "*** Testing getrusage() : error conditions ***\n";
19 echo "\n-- Testing getrusage() function with more than expected no. of arguments --\n";
21 $dat = getrusage(1, $extra_arg);
23 echo "\n-- Testing getrusage() function with invalid argument - non-numeric STRING--\n";
25 $dat = getrusage($string_arg);
27 echo "\n-- Testing getrusage() function with invalid argument - ARRAY--\n";
29 $dat = getrusage($array_arg);
31 echo "\n-- Testing getrusage() function with invalid argument - OBJECT --\n";
39 $dat = getrusage($obj_arg);
41 echo "\n-- Testing getrusage() function with invalid argument - RESOURCE --\n";
43 $dat = getrusage($file_handle);
49 *** Testing getrusage() : error conditions ***
51 -- Testing getrusage() function with more than expected no. of arguments --
53 Warning: getrusage() expects at most 1 parameter, 2 given in %s on line %d
55 -- Testing getrusage() function with invalid argument - non-numeric STRING--
57 Warning: getrusage() expects parameter 1 to be integer, string given in %s on line %d
59 -- Testing getrusage() function with invalid argument - ARRAY--
61 Warning: getrusage() expects parameter 1 to be integer, array given in %s on line %d
63 -- Testing getrusage() function with invalid argument - OBJECT --
65 Warning: getrusage() expects parameter 1 to be integer, object given in %s on line %d
67 -- Testing getrusage() function with invalid argument - RESOURCE --
69 Warning: getrusage() expects parameter 1 to be integer, resource given in %s on line %d