diff options
author | Zeev Suraski <zeev@php.net> | 2000-02-10 19:28:05 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-02-10 19:28:05 +0000 |
commit | 25b5cb95990210000600db050db819446ac47cdb (patch) | |
tree | 6180d3d5585e721e2f8e8c2c10210848c6303e9c | |
parent | 79726c8864a8ceeb77a80dfcbd429b8662bd8790 (diff) | |
download | php-git-25b5cb95990210000600db050db819446ac47cdb.tar.gz |
More protection...
-rw-r--r-- | main/SAPI.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index 006789a474..11e92e8e01 100644 --- a/main/SAPI.c +++ b/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(); |