1--TEST-- 2getrusage() tests 3--SKIPIF-- 4<?php if (!function_exists("getrusage")) print "skip"; ?> 5--FILE-- 6<?php 7 8var_dump(gettype(getrusage())); 9var_dump(gettype(getrusage(1))); 10var_dump(gettype(getrusage(-1))); 11var_dump(getrusage(array())); 12 13 14echo "Done\n"; 15?> 16--EXPECTF-- 17string(5) "array" 18string(5) "array" 19string(5) "array" 20 21Warning: getrusage() expects parameter 1 to be long, array given in %s on line %d 22NULL 23Done 24