1--TEST-- 2Test syslog() function : basic functionality 3--SKIPIF-- 4<?php 5if(substr(PHP_OS, 0, 3) != "WIN") 6 die("skip Only run on Windows"); 7?> 8--FILE-- 9<?php 10/* Prototype : bool syslog(int priority, string message) 11 * Description: Generate a system log message 12 * Source code: ext/standard/syslog.c 13 * Alias to functions: 14 */ 15 16echo "*** Testing syslog() : basic functionality ***\n"; 17 18 19// Initialise all required variables 20$priority = LOG_WARNING; 21$message = 'A test syslog call invocation'; 22 23// Calling syslog() with all possible arguments 24var_dump( syslog($priority, $message) ); 25 26?> 27===DONE=== 28--EXPECT-- 29*** Testing syslog() : basic functionality *** 30bool(true) 31===DONE=== 32