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