mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
The last patch wasn't that good, fix
This commit is contained in:
parent
25b5cb9599
commit
9709f7ec73
10
main/SAPI.c
10
main/SAPI.c
@ -378,15 +378,13 @@ SAPI_API int sapi_flush()
|
||||
if (sapi_module.flush) {
|
||||
SLS_FETCH();
|
||||
|
||||
if (SG(server_context)) {
|
||||
sapi_module.flush(SG(server_context));
|
||||
return SUCCESS;
|
||||
}
|
||||
sapi_module.flush(SG(server_context));
|
||||
return SUCCESS;
|
||||
} else {
|
||||
return FAILURE;
|
||||
}
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
|
||||
SAPI_API struct stat *sapi_get_stat()
|
||||
{
|
||||
SLS_FETCH();
|
||||
|
@ -149,11 +149,13 @@ static int sapi_apache_ub_write(const char *str, uint str_length)
|
||||
|
||||
static void sapi_apache_flush(void *server_context)
|
||||
{
|
||||
if (server_context) {
|
||||
#if MODULE_MAGIC_NUMBER > 19970110
|
||||
rflush((request_rec *) server_context);
|
||||
rflush((request_rec *) server_context);
|
||||
#else
|
||||
bflush((request_rec *) server_context->connection->client);
|
||||
bflush((request_rec *) server_context->connection->client);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user