Fix usage with composer loader where zend is not in include path
Fix segfaulting random error related to APC and constant named "INVALID" (yes really!)