cvs: /php4 SAPI.c

From: Date: Thu, 10 Feb 2000 19:28:35 +0000
Subject: cvs: /php4 SAPI.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-10057@lists.php.net to get a copy of this message
zeev Thu Feb 10 11:28:35 2000 EDT Modified files: /php4 SAPI.c Log: More protection... Index: php4/SAPI.c diff -u php4/SAPI.c:1.48 php4/SAPI.c:1.49 --- php4/SAPI.c:1.48 Thu Feb 10 11:22:36 2000 +++ php4/SAPI.c Thu Feb 10 11:28:05 2000 @@ -378,12 +378,14 @@ 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() {

« previous php.version4 (#10057) next »