note 76649 deleted from function.define-syslog-variables by cmb
| From: | cmb@php.net | Date: | Mon, 25 Jan 2021 17:11:30 +0000 |
| Subject: | note 76649 deleted from function.define-syslog-variables by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-216235@lists.php.net to get a copy of this message | ||
Note Submitter: chad 0x40 herballure 0x2e com
----
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)
?>