Home >Backend Development >PHP Tutorial >Windows下的PHP 5.3.x安装 Zend Guard Loader教程_PHP

Windows下的PHP 5.3.x安装 Zend Guard Loader教程_PHP

WBOY
WBOYOriginal
2016-05-31 19:29:551010browse

从PHP5.3开始如果要支持ZendGuard加密的PHP代码,必须安装Zend Guard Loader,老的zend optimizer将不被支持。另外,Zend Guard Loader 仅支持 Non Thread Safe 版本的PHP。

下载扩展:

http://www.zend.com/en/products/guard/downloads

安装扩展:

在php.ini中追加:

代码如下:


[Zend.loader]
zend_extension='D:/Program Files/PHP-5.3.29/ZendLoader.dll'
zend_loader.enable=1
zend_loader.disable_licensing=1
zend_loader.obfuscation_level_support=3
zend_loader.license_path=

重启Web服务器(IIS/Nginx)
 
运行phpinfo(),会看到如下信息:

代码如下:


This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
    with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn