1--TEST--
2Syslog parameter parsing test
3--FILE--
4<?php
5openlog();
6openlog(NULL, 'string', 0);
7
8syslog();
9syslog('Wrong parameter order', LOG_WARNING);
10
11closelog('Doesnt take any parameters');
12?>
13--EXPECTF--
14Warning: openlog() expects exactly 3 parameters, 0 given in %s on line %d
15
16Warning: openlog() expects parameter 2 to be integer, string given in %s on line %d
17
18Warning: syslog() expects exactly 2 parameters, 0 given in %s on line %d
19
20Warning: syslog() expects parameter 1 to be integer, string given in %s on line %d
21
22Warning: closelog() expects exactly 0 parameters, 1 given in %s on line %d
23