从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