mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fix php_log_err macro
This commit is contained in:
parent
4b75cb120d
commit
d2bc82586b
1 changed files with 5 additions and 0 deletions
|
@ -280,7 +280,12 @@ PHPAPI size_t php_write(void *buf, size_t size);
|
||||||
PHPAPI size_t php_printf(const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1,
|
PHPAPI size_t php_printf(const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1,
|
||||||
2);
|
2);
|
||||||
PHPAPI int php_get_module_initialized(void);
|
PHPAPI int php_get_module_initialized(void);
|
||||||
|
#ifdef HAVE_SYSLOG_H
|
||||||
|
#include "php_syslog.h"
|
||||||
#define php_log_err(msg) php_log_err_with_severity(msg, LOG_NOTICE)
|
#define php_log_err(msg) php_log_err_with_severity(msg, LOG_NOTICE)
|
||||||
|
#else
|
||||||
|
#define php_log_err(msg) php_log_err_with_severity(msg, 5)
|
||||||
|
#endif
|
||||||
PHPAPI ZEND_COLD void php_log_err_with_severity(char *log_message, int syslog_type_int);
|
PHPAPI ZEND_COLD void php_log_err_with_severity(char *log_message, int syslog_type_int);
|
||||||
int Debug(char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1, 2);
|
int Debug(char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1, 2);
|
||||||
int cfgparse(void);
|
int cfgparse(void);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue