Run object destructors before clearing autoload handler
commit75751d201ceb50bfd90ff8f8a211402fd456c814
authorbsimmers <bsimmers@fb.com>
Mon, 22 Jul 2013 17:16:49 +0000 (22 10:16 -0700)
committerSara Golemon <sgolemon@fb.com>
Mon, 22 Jul 2013 18:34:11 +0000 (22 11:34 -0700)
treed176033ad330cd66db4091d94a035bf9f5567fec
parent1140d2f313b8ca442883bb302cc3561f3fa9f7ff
Run object destructors before clearing autoload handler

Our request shutdown procedure cleared the autoload handler
before running destructors of any remaining objects. This was causing
fatals when some of those destructors tried to use a
class/function/constant that hadn't already been autoloaded.
hphp/runtime/base/program_functions.cpp
hphp/runtime/vm/bytecode.cpp