30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Zend Guard Loader - PHP API<br />

Table of Contents<br />

• Zend Guard Loader functions<br />

API <strong>Reference</strong><br />

o zend_loader_enabled - Checks the Zend Optimizer+ configuration to verify that it is<br />

configured to load encoded files<br />

o zend_loader_file_encoded - Returns TRUE if the current file was encoded with Zend<br />

Guard or FALSE otherwise. If FALSE, consider disabling the Guard Loader<br />

o zend_loader_file_licensed - Compares the signature of the running file against the<br />

signatures of the license files that are loaded into the License Registry by the php.ini file.<br />

If a valid license file exists, the values of the license file are read into an array. If a valid<br />

license does not exist or is not specified in the php.ini, it is not entered in the PHP<br />

server's license registry. If a valid license that matches the product and signature cannot<br />

be found in the license directory, an array is not created. For information on the proper<br />

installation of a license file, as well as the php.ini directive, see the Zend Guard User<br />

<strong>Guide</strong><br />

o zend_loader_current_file - Obtains the full path to the file that is currently running. In<br />

other words, the path of the file calling this API function is evaluated only at run time and<br />

not during encoding<br />

o zend_loader_install_license - Dynamically loads a license for applications encoded with<br />

Zend Guard.<br />

o zend_obfuscate_function_name - Obfuscate and return the given function name with the<br />

internal obfuscation function<br />

o zend_current_obfuscation_level - Returns the current obfuscation level support (set by<br />

zend_optimizer.obfuscation_level_support) to get information on the product that is<br />

currently running.<br />

o zend_runtime_obfuscate - Start runtime-obfuscation support to allow limited mixing of<br />

obfuscated and un-obfuscated code<br />

o zend_obfuscate_class_name - Obfuscate and return the given class name with the<br />

internal obfuscation function<br />

o zend_get_id - Returns an array of Zend (host) IDs in your system. If all_ids is TRUE, then<br />

all IDs are returned, otherwise only IDs considered "primary" are returned<br />

o zend_loader_version - Returns Zend Guard Loader version<br />

239

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!