You are currently viewing Zend Server 5.x documentation. Click here to view the latest Zend Server online documentation.
You are here: API Reference Guide > Zend Guard Loader - PHP API

Zend Guard Loader - PHP API

Table of Contents

PHP Functions

zend_loader_enabled

Checks the Zend Optimizer+ configuration to verify that it is configured to load encoded files

Available since version 4.0

Description

boolean zend_loader_enabled (void)

Return Value

Returns TRUE if the Guard Loader is configured to load encoded files. Returns FALSE if the Guard Loader is not configured to load encoded files.

zend_loader_file_encoded

Returns TRUE if the current file was encoded with Zend Guard or FALSE otherwise. If FALSE, consider disabling the Guard Loader

Available since version 4.0

Description

boolean zend_loader_file_encoded (void)

Return Value

TRUE if Zend-encoded, FALSE otherwise

zend_loader_file_licensed

Compares the signature of the running file against the signatures of the license files that are loaded into the License Registry by the php.ini file. If a valid license file exists, the values of the license file are read into an array. If a valid license does not exist or is not specified in the php.ini, it is not entered in the PHP server's license registry. If a valid license that matches the product and signature cannot be found in the license directory, an array is not created. For information on the proper installation of a license file, as well as the php.ini directive, see the Zend Guard User Guide

Available since version 4.0

Description

array zend_loader_file_licensed (void)

Return Value

Returns an array or FALSE.<br> If an array is returned, a valid license for the product exists in the location indicated in the php.ini file.

zend_loader_current_file

Obtains the full path to the file that is currently running. In other words, the path of the file calling this API function is evaluated only at run time and not during encoding

Available since version 4.0

Description

string zend_loader_current_file (void)

Return Value

Returns a string containing the full path of the file that is currently running

zend_loader_install_license

Dynamically loads a license for applications encoded with Zend Guard.

Available since version 4.0

Description

boolean zend_loader_install_license (string $license_file [ , boolean $overwrite = 0 ])

Parameters
license_file
Name of the license file
overwrite
Controls if the function overwrites old licenses for the same product <br> 0=Do not overwrite<br> 1=Overwrite . The default value is 0
Return Value

TRUE if the license was loaded successfully, FALSE otherwise

zend_obfuscate_function_name

Obfuscate and return the given function name with the internal obfuscation function

Available since version 4.0

Description

string zend_obfuscate_function_name (string $function_name)

Parameters
function_name
Name of the function to obfuscate
Return Value

Returns the obfuscated form of the given string.

zend_current_obfuscation_level

Returns the current obfuscation level support (set by zend_optimizer.obfuscation_level_support) to get information on the product that is currently running.

Available since version 4.0

Description

int zend_current_obfuscation_level (void)

Return Value

Current obfuscation level

zend_runtime_obfuscate

Start runtime-obfuscation support to allow limited mixing of obfuscated and un-obfuscated code

Available since version 4.0

Description

boolean zend_runtime_obfuscate (void)

Return Value

TRUE if succeeds, FALSE otherwise

zend_obfuscate_class_name

Obfuscate and return the given class name with the internal obfuscation function

Available since version 4.0

Description

string zend_obfuscate_class_name (string $class_name)

Parameters
class_name
Name of the class to obfuscate
Return Value

Returns the obfuscated form of the given string

zend_get_id

Returns an array of Zend (host) IDs in your system. If all_ids is TRUE, then all IDs are returned, otherwise only IDs considered "primary" are returned

Available since version 4.0

Description

array zend_get_id ([ boolean $all_ids = false ])

Parameters
all_ids
If all_ids is TRUE, returns all IDs, otherwise returns only IDs that are considered "primary". The default value is false
Return Value

Array of host IDs

zend_loader_version

Returns Zend Guard Loader version

Available since version 4.0

Description

string zend_loader_version (void)

Return Value

Zend Guard Loader version

 

© 1999-2013 Zend Technologies, Ltd. All rights reserved.