Menu

#61 is exit() okay when serving raw files?

workingwiki
open
5
2013-05-07
2011-02-22
Lee Worden
No

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?

Discussion

Anonymous
Anonymous

Add attachments
Cancel