--TEST-- Harden rand without any arguments --SKIPIF-- = 80000) print "skip Not applicable for PHP 8+"; ?> --INI-- sp.configuration_file={PWD}/config/harden_rand.ini We should fix this --FILE-- --EXPECTF-- Warning: rand() expects exactly 2 parameters, 1 given in %s/harden_rand_noargs.php on line %d Warning: mt_rand() expects exactly 2 parameters, 1 given in %s/harden_rand_noargs.php on line %d Warning: mt_rand(): max(1) is smaller than min(2) in %s/harden_rand_noargs.php on line %d Warning: rand() expects exactly 2 parameters, 3 given in %s/harden_rand_noargs.php on line %d Warning: mt_rand() expects exactly 2 parameters, 3 given in %s/harden_rand_noargs.php on line %d Warning: rand() expects parameter 1 to be in%s, string given in %s/harden_rand_noargs.php on line %d Warning: mt_rand() expects parameter 1 to be in%s, string given in %s/harden_rand_noargs.php on line %d Warning: rand() expects parameter 2 to be in%s, string given in %s/harden_rand_noargs.php on line %d Warning: mt_rand() expects parameter 2 to be in%s, string given in %s/harden_rand_noargs.php on line %d Warning: rand() expects exactly 2 parameters, 3 given in %s/harden_rand_noargs.php on line %d Warning: mt_rand() expects exactly 2 parameters, 3 given in %s/harden_rand_noargs.php on line %d Everything is fine Absolutely everything Even with single quotes