is exit() okay when serving raw files?
Status: Beta
Brought to you by:
worden
Somewhere in call_project_engine(), it overrides the usual working of $wgOut and does raw output followed by exit. This also happens in SpecialGetProjectFile.php, and I think in misc.php, to produce simple http error pages.
This trashes any profiling information that's been collected, and I wonder if it causes any other problems for MW. Maybe I shouldn't do it that way? Or should do some cleanup on the way out?
Anonymous