1--TEST--
2Test expm1() - Error conditions
3--INI--
4precision=14
5--SKIPIF--
6<?php
7	function_exists('expm1') or die('skip expm1() is not supported in this build.');
8?>
9--FILE--
10<?php
11/* Prototype  : float expm1  ( float $arg  )
12 * Description: Returns exp(number) - 1, computed in a way that is accurate even
13 *              when the value of number is close to zero.
14 * Source code: ext/standard/math.c
15 */
16
17echo "*** Testing expm1() : error conditions ***\n";
18
19echo "\n-- Testing expm1() function with less than expected no. of arguments --\n";
20expm1();
21echo "\n-- Testing expm1() function with more than expected no. of arguments --\n";
22expm1(23,true);
23
24?>
25===Done===
26--EXPECTF--
27*** Testing expm1() : error conditions ***
28
29-- Testing expm1() function with less than expected no. of arguments --
30
31Warning: expm1() expects exactly 1 parameter, 0 given in %s on line %d
32
33-- Testing expm1() function with more than expected no. of arguments --
34
35Warning: expm1() expects exactly 1 parameter, 2 given in %s on line %d
36===Done===
37
38