Installing Zend Guard Loader

The Zend Guard Loader is a PHP extension that runs PHP scripts encoded by Zend Guard. The Guard Loader extension must be installed on each Web server that runs files that were encoded with, or use, Zend Guard licenses. The Zend Guard Loader translates encoded files to a format that can be parsed by the Zend Engine. This runtime process uses the Zend engine as a trigger to start the Zend Guard Loader component.

Note:

This procedure pertains only to users attempting to run files that were encoded with Zend Guard, and who do not have Zend Server installed on their machine.

 

 

Instructions on how to complete a procedure

To install the Zend Guard Loader:

  1. Download and extract the Zend Guard Loader (Runtime for PHP 5.5 or 5.6) package from Zend.com at: http://www.zend.com/en/products/guard/downloads
  2. Locate and extract the ZendGuardLoader.so (Linux) or ZendLoader.dll (Windows) that corresponds to your PHP version.
  3. Add the following line to your 'php.ini' file for loading the ZendGuardLoader:
    • Linux and Mac OS X:

    zend_extension=<full_path_to_ZendGuardLoader.so>

    zend_extension=<full_path_to_opcache.so>

    • Windows non-thread safe (TS is not supported):

    zend_extension=<full_path_to_ZendLoader.dll>

    zend_extension=<full_path_to_opcache.dll>

Note:

The supplied OPcache replaces your current OPcache binary to allow correct extension loading. Loader line should be executed first.

  1. Optional: Add an additional line to your 'php.ini' for enabling ZendGuardLoader:

    ; Enables loading encoded scripts. The default value is On
    zend_loader.enable=1

  2. Optional: the following lines can be added your 'php.ini' file for ZendGuardLoader configuration:

    ; Disable license checks (for performance reasons)

    zend_loader.disable_licensing=0

    ; The Obfuscation level supported by Zend Guard Loader. The levels are detailed in the official Zend Guard Documentation. 0 - no obfuscation is enabled

    zend_loader.obfuscation_level_support=3

    ; Path to where licensed Zend products should look for the product license. For more information on how to create a license file, see the Zend Guard User Guide

    zend_loader.license_path=

  3. Restart your web server.

  4. Check that the loader and OPcache are both loaded (using phpinfo() or php -v).

  5. Run your encoded files.