mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Pass error severity to SAPI modules and raise corresponding error level in Apache
This commit is contained in:
parent
2e3903b2d6
commit
2809a676b5
11 changed files with 42 additions and 14 deletions
|
@ -689,7 +689,7 @@ static void sapi_cli_server_register_variables(zval *track_vars_array) /* {{{ */
|
|||
zend_hash_apply_with_arguments(&client->request.headers, (apply_func_args_t)sapi_cli_server_register_entry_cb, 1, track_vars_array);
|
||||
} /* }}} */
|
||||
|
||||
static void sapi_cli_server_log_message(char *msg) /* {{{ */
|
||||
static void sapi_cli_server_log_message(char *msg, int syslog_type_int) /* {{{ */
|
||||
{
|
||||
char buf[52];
|
||||
|
||||
|
@ -1184,7 +1184,7 @@ static void php_cli_server_logf(const char *format, ...) /* {{{ */
|
|||
}
|
||||
|
||||
if (sapi_module.log_message) {
|
||||
sapi_module.log_message(buf);
|
||||
sapi_module.log_message(buf, -1);
|
||||
}
|
||||
|
||||
efree(buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue