Add zend_alloc XLEAK support In the future we may want to use a different exit code to warn for tests that didn't leak. Closes GH-10999
Partially fix handling of exceptions thrown in interrupt handlers