Based on reading a comment by a, presumably, PHP internals dev: we should be using malloc for our globals since the e* equivalents are freed automagically at the end of a request, which might explain our problems.