1--TEST-- 2Test wrong number of arguments for sqrt() 3--INI-- 4precision = 14 5--FILE-- 6<?php 7/* 8 * proto float sqrt(float number) 9 * Function is implemented in ext/standard/math.c 10*/ 11 12$arg_0 = 1.0; 13$extra_arg = 1; 14 15echo "\nToo many arguments\n"; 16var_dump(sqrt($arg_0, $extra_arg)); 17 18echo "\nToo few arguments\n"; 19var_dump(sqrt()); 20 21?> 22--EXPECTF-- 23Too many arguments 24 25Warning: sqrt() expects exactly 1 parameter, 2 given in %s on line %d 26NULL 27 28Too few arguments 29 30Warning: sqrt() expects exactly 1 parameter, 0 given in %s on line %d 31NULL 32