Annotation of embedaddon/php/ext/standard/tests/network/syslog_basic-win32.phpt, revision 1.1.1.1

1.1       misho       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: 
                     16: echo "*** 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
                     24: var_dump( syslog($priority, $message) );
                     25: 
                     26: ?>
                     27: ===DONE===
                     28: --EXPECT--
                     29: *** Testing syslog() : basic functionality ***
                     30: bool(true)
                     31: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>