1--TEST--
2Test closelog() function : error conditions
3--FILE--
4<?php
5/* Prototype  : bool closelog(void)
6 * Description: Close connection to system logger
7 * Source code: ext/standard/syslog.c
8 * Alias to functions:
9 */
10
11echo "*** Testing closelog() : error conditions ***\n";
12
13// One argument
14echo "\n-- Testing closelog() function with one argument --\n";
15$extra_arg = 10;;
16var_dump( closelog($extra_arg) );
17
18?>
19===DONE===
20--EXPECTF--
21*** Testing closelog() : error conditions ***
22
23-- Testing closelog() function with one argument --
24
25Warning: closelog() expects exactly 0 parameters, 1 given in %s on line %d
26NULL
27===DONE===
28