Browse Source

More protection...

PHP-4.0.5
Zeev Suraski 27 years ago
parent
commit
25b5cb9599
  1. 10
      main/SAPI.c

10
main/SAPI.c

@ -378,13 +378,15 @@ SAPI_API int sapi_flush()
if (sapi_module.flush) {
SLS_FETCH();
sapi_module.flush(SG(server_context));
return SUCCESS;
} else {
return FAILURE;
if (SG(server_context)) {
sapi_module.flush(SG(server_context));
return SUCCESS;
}
}
return FAILURE;
}
SAPI_API struct stat *sapi_get_stat()
{
SLS_FETCH();

Loading…
Cancel
Save