Squashed ob_end_flush(): failed to delete and flush buffer warning

This commit is contained in:
Albert Santoni 2015-03-24 17:02:04 -04:00
parent 25d6ecac0e
commit 48b4eaacd6
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,9 @@ class Application_Common_FileIO
//We can have multiple levels of output buffering. Need to
//keep looping until all have been disabled!!!
//http://www.php.net/manual/en/function.ob-end-flush.php
while (@ob_end_flush());
while (ob_get_level() > 0) {
ob_end_flush();
}
// NOTE: We can't use fseek here because it does not work with streams
// (a.k.a. Files stored in the cloud)