从PHP5.3.x开始Zend Guard 将代替ZendOptimizer:


从PHP5.3k开始Zend Guard将取代Zend Optimizer~下载安装Zend Guard
实际上不用装Zend Guard了 直接下载LOADER就可以了
下好之后扔进usr/local/zend/ 修改php.ini就可以了~和以前的Zend Optimizer一样

地址:http://forums.zend.com/viewtopic.php?f=57&t=6595

运行的接过还是很让人无奈的应该是文件加密的版本太低了 出现下面的错误


Fatal error: Incompatible file format: The encoded file has format major ID 1, whereas the Loader expects 4 in

下面的内容不用看了 就是为了撑下版面 囧:

PHP版本和ZendOptimizer版本不对应

trylife@ubuntu:~$ php -version
Zend Optimizer requires Zend Engine API version 220060519.
The Zend Engine API version 220090626 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Optimizer.

PHP Warning: PHP Startup: Zend Optimizer: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0

PHP 5.3.2-1ubuntu4.2 with Suhosin-Patch (cli) (built: May 13 2010 20:03:45)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

ZendOptimizer 还没有支持PHP5.3.x的版本

trylife@ubuntu:~/ZendOptimizer-3.3.9-linux-glibc23-x86_64/data$ ls -ll
drwxr-xr-x 2 root root 4096 2009-08-24 19:58 4_2_0_comp
drwxr-xr-x 2 root root 4096 2009-08-24 19:58 4_2_x_comp
drwxr-xr-x 2 root root 4096 2009-08-24 19:58 4_3_x_comp
drwxr-xr-x 2 root root 4096 2009-08-24 19:58 4_4_x_comp
drwxr-xr-x 2 root root 4096 2009-08-24 19:58 5_0_x_comp
drwxr-xr-x 2 root root 4096 2009-08-24 19:58 5_1_x_comp
drwxr-xr-x 2 root root 4096 2009-08-24 19:58 5_2_x_comp
-rw-r--r-- 1 root root 2088 2004-01-29 00:35 poweredbyoptimizer.gif


要退回到PHP5.2.x?
貌似不用

Zend has released an "Early Access" release of Zend Guard with support for PHP 5.3. Along with this release is a EA release of a "Guard Loader "component which is the run-time component for Zend Guard for PHP 5.3 (this issued instead of Optimizer). This release was fully tested with Zend Server and Zend Server CE. In each package there is a README file that explains how to install Guard Loader 5.3 on Zend Server/CE. For non-Zend Server installs users will have to copy the .so/.dll to their server and add to their php.ini:

从PHP5.3k开始Zend Guard将取代Zend Optimizer~下载安装Zend Guard

实际上不用装Zend Guard了 直接下载LOADER就可以了

http://forums.zend.com/viewtopic.php?f=57&t=6595

下好之后扔进usr/local/zend/ 修改php.ini就可以了~和以前的Zend Optimizer一样


trylife@ubuntu:~/Downloads$ wget http://downloads.zend.com/guard/5.1.0EA/ZendGuard-5_1_0_EA.bin
trylife@ubuntu:~/Downloads$ ./ZendGuard-5_0_1.bin
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
#.....
Launching installer... #从现在开始卡一段时间

接下来出现界面步骤

运行的接过还是很让人无奈的应该是文件加密的版本太低了 出现下面的错误


Fatal error: Incompatible file format: The encoded file has format major ID 1, whereas the Loader expects 4 in