Zend Optimizer ============== Introduction ============ The Zend Optimizer is the free runtime for files encoded by the Zend Guard (see http://www.zend.com/guard/ for more information about Zend Guard). Special Note for Windows ======================== The current windows Zip package fixes a security problem reported by Gjoko Krstic at Zero Science Labs in ZSL-2012-5083 (see http://www.zeroscience.mk/en/vulnerabilities/ZSL-2012-5083.php for more details). Overview ======== The Zend Optimizer is loaded as a PHP engine extension. This extension transparently detects and loads encoded files. The Zend Optimizer User Guide is intended for supplying information about installing and operating Zend Optimizer in the following sections: System Requirements =================== In order to run properly, the following requirements have to be met: 1. Zend Optimizer is installed on a supported operating system. 2. Zend Optimizer is installed on a supported version of PHP 5.2 3. A web server is installed on the machine on which the PHP is running. Installing the Zend Optimizer ============================= 1. Extract the Zend Optimizer Zip file 2. Add the following directives to your php.ini [Zend] zend_extension_manager.optimizer_ts="\ZendOptimizer-3.3.3\Optimizer-3.3.3" zend_extension_ts="\ZendOptimizer-3.3.3\ZendExtensionManager.dll" 3. Restart your Web server. 4. Verify that both components are loaded using phpinfo() - Output should be: Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies Limitations =========== The Zend Optimizer will not run if the following PHP settings are enabled: 1. Debug Mode - Check that your PHP was compiled in non-debug mode - This can be checked by looking at the top part of the phpinfo() function output and checking "Debug Build" row (ZEND_DEBUG in older PHP versions) - it should say "no". 2. Thread Safety - Check that your PHP was compiled in ZTS mode for Windows. This can be checked by looking at the top part of the phpinfo() function and checking "Thread Safety" row - it should say "enabled" for Windows. 3. Enable Versioning - Check that your PHP was compiled without the Enable Versioning setting. This can be checked by looking at the top part of the phpinfo() function and checking to see if a row called "--enable-versioning" exists in the Configure Command section - if it does exists the PHP should be compiled without this option.