PHP 5.4.31 Released

define_syslog_variables

(PHP 4, PHP 5 < 5.4.0)

define_syslog_variablesInizializza tutte le costanti collegate al syslog

Descrizione

void define_syslog_variables ( void )

Inizializza tutte le costanti usate nelle funzioni del syslog.

Vedere anche openlog(), syslog() e closelog().

add a note add a note

User Contributed Notes 1 note

up
1
chad 0x40 herballure 0x2e com
7 years ago
define_syslog_variables() only defines global variables. Constants are already always defined, if the syslog module is loaded. You _do not_ need to call this to use the syslog constants.

For instance, on my system:
<?php
var_dump
(LOG_ERR); // int(3)
var_dump($LOG_ERR); // NULL (and an E_NOTICE)
define_syslog_variables();
var_dump($LOG_ERR); // int(3)
?>
To Top