1--TEST--
2Test wrong number of arguments for log10()
3--INI--
4precision = 14
5--FILE--
6<?php
7/*
8 * proto float log10(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(log10($arg_0, $extra_arg));
17
18echo "\nToo few arguments\n";
19var_dump(log10());
20
21?>
22--EXPECTF--
23Too many arguments
24
25Warning: log10() expects exactly 1 parameter, 2 given in %s on line %d
26NULL
27
28Too few arguments
29
30Warning: log10() expects exactly 1 parameter, 0 given in %s on line %d
31NULL
32