mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Avoid writing to error_log in case of aborted connections.
This commit is contained in:
parent
7c2ea02288
commit
559c254f8f
@ -124,10 +124,8 @@ static int sapi_apache_ub_write(const char *str, uint str_length)
|
||||
|
||||
if (SG(server_context)) {
|
||||
ret = rwrite(str, str_length, (request_rec *) SG(server_context));
|
||||
} else {
|
||||
ret = fwrite(str, 1, str_length, stderr);
|
||||
}
|
||||
if(ret != str_length) {
|
||||
if (ret != str_length) {
|
||||
php_handle_aborted_connection();
|
||||
}
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user