Force output buffers to be flushed, if they're turned on.

If output buffering is turned on, PHP can be a bit slack about sending
the data to the client before closing the connection with exit(). These
changes ensure we call ob_flush() before we leave.  We call @ob_flush()
so we don't get noisy warnings when output buffering is off...
This commit is contained in:
Andrew McMillan committed 2011-11-02 18:43:10 +13:00
1 parent c093419591
commit b50b2d82ea
13 files changed
+24 -23

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ if ( $_SERVER['REQUEST_METHOD'] != "GET" && $_SERVER['REQUEST_METHOD'] != "POST"
* If the request is not a GET or POST then they must really want caldav.php!
*/
include("./caldav.php");
exit; // Not that it should return from that!
@ob_flush(); exit(0); // Not that it should return from that!
}
include("./always.php");