syslog_basic-win32.phpt 681 B

12345678910111213141516171819202122232425262728293031
  1. --TEST--
  2. Test syslog() function : basic functionality
  3. --SKIPIF--
  4. <?php
  5. if(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. echo "*** Testing syslog() : basic functionality ***\n";
  16. // Initialise all required variables
  17. $priority = LOG_WARNING;
  18. $message = 'A test syslog call invocation';
  19. // Calling syslog() with all possible arguments
  20. var_dump( syslog($priority, $message) );
  21. ?>
  22. ===DONE===
  23. --EXPECT--
  24. *** Testing syslog() : basic functionality ***
  25. bool(true)
  26. ===DONE===