--- /dev/null
+--TEST--
+Basic syslog test
+--FILE--
+<?php
+openlog('phpt', LOG_NDELAY | LOG_PID, LOG_USER);
+
+syslog(LOG_WARNING, 'Basic syslog test');
+
+closelog();
+?>
+===DONE===
+--EXPECT--
+===DONE===
--- /dev/null
+--TEST--
+Syslog parameter parsing test
+--FILE--
+<?php
+openlog();
+openlog(NULL, 'string', 0);
+
+syslog();
+syslog('Wrong parameter order', LOG_WARNING);
+
+closelog('Doesnt take any parameters');
+?>
+--EXPECTF--
+Warning: openlog() expects exactly 3 parameters, 0 given in %s on line %d
+
+Warning: openlog() expects parameter 2 to be long, string given in %s on line %d
+
+Warning: syslog() expects exactly 2 parameters, 0 given in %s on line %d
+
+Warning: syslog() expects parameter 1 to be long, string given in %s on line %d
+
+Warning: closelog() expects exactly 0 parameters, 1 given in %s on line %d
--- /dev/null
+--TEST--
+define_syslog_variables() variation 2
+--FILE--
+<?php
+define_syslog_variables();
+
+$standard_types = Array(
+ 'LOG_EMERG',
+ 'LOG_ALERT',
+ 'LOG_CRIT',
+ 'LOG_ERR',
+ 'LOG_WARNING',
+ 'LOG_NOTICE',
+ 'LOG_INFO',
+ 'LOG_DEBUG',
+ 'LOG_KERN',
+ 'LOG_USER',
+ 'LOG_MAIL',
+ 'LOG_DAEMON',
+ 'LOG_AUTH',
+ 'LOG_LPR',
+ 'LOG_PID',
+ 'LOG_CONS',
+ 'LOG_ODELAY',
+ 'LOG_NDELAY'
+ );
+
+foreach($standard_types as $logtype)
+{
+ var_dump(isset(${$logtype}));
+}
+?>
+--EXPECTF--
+Deprecated: Function define_syslog_variables() is deprecated in %s on line %d
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+bool(true)
+bool(true)