summaryrefslogtreecommitdiff
path: root/ext/standard/tests/network/syslog_basic.phpt
blob: 128a73cbb836ec4ba6605bceb51dbb4a1758a7cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Test syslog() function : basic functionality
--FILE--
<?php
echo "*** Testing syslog() : basic functionality ***\n";


// Initialise all required variables
$priority = LOG_WARNING;
$message = 'A test syslog call invocation';

// Calling syslog() with all possible arguments
var_dump( syslog($priority, $message) );

?>
--EXPECT--
*** Testing syslog() : basic functionality ***
bool(true)