summaryrefslogtreecommitdiff
path: root/main/SAPI.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-01-13 17:37:25 +0000
committerZeev Suraski <zeev@php.net>2000-01-13 17:37:25 +0000
commit972631be7105a3120a405dc0d25c2dbb7179cd13 (patch)
treefce49aae99b6b0f3f2cd2f80a9a5580ff495fa6b /main/SAPI.c
parentc658fc5cbdede7c8d11c7bf7eb84b342ae34c2e3 (diff)
downloadphp-git-972631be7105a3120a405dc0d25c2dbb7179cd13.tar.gz
- Added flush() support to SAPI
- Got rid of the old flush() implemenetation in favour of the new one - Added implicit_flush() support to the output buffering layer. @- Added implicit_flush() to control whether flush() should be called @ implicitly after any output (Zeev)
Diffstat (limited to 'main/SAPI.c')
-rw-r--r--main/SAPI.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index f5782321e2..30d0db76b1 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -357,3 +357,15 @@ SAPI_API int sapi_register_default_post_reader(void (*default_post_reader)(char
return SUCCESS;
}
+
+SAPI_API int sapi_flush()
+{
+ if (sapi_module.flush) {
+ SLS_FETCH();
+
+ sapi_module.flush(SG(server_context));
+ return SUCCESS;
+ } else {
+ return FAILURE;
+ }
+}