Modified code to deal with Zend Optimizer