MDL-25314 adding some header/session related notes

This commit is contained in:
Petr Skoda 2010-11-20 03:49:20 +00:00
parent 5e21cac896
commit 871ed45870
2 changed files with 4 additions and 1 deletions

View file

@ -345,6 +345,7 @@ $CFG->httpswwwroot = $CFG->wwwroot;
require_once($CFG->libdir .'/setuplib.php'); // Functions that MUST be loaded first require_once($CFG->libdir .'/setuplib.php'); // Functions that MUST be loaded first
if (NO_OUTPUT_BUFFERING) { if (NO_OUTPUT_BUFFERING) {
// we have to call this always before starting session because it discards headers!
disable_output_buffering(); disable_output_buffering();
} }

View file

@ -964,7 +964,9 @@ function get_real_size($size = 0) {
} }
/** /**
* Try to disable all output buffering * Try to disable all output buffering and purge
* all headers.
*
* @private to be called only from lib/setup.php ! * @private to be called only from lib/setup.php !
* @return void * @return void
*/ */