简体   繁体   English

Zend Optimizer和Zend Guard Loader有什么区别? 他们实际上是做什么的?

[英]What's the difference between Zend Optimizer and Zend Guard Loader? And what do they actually do?

I've got an app which requires Zend Optimizer to run because it's encoded somehow. 我有一个需要Zend Optimizer运行的应用程序,因为它以某种方式编码。 Search for Zend Optimizer at official Zend site leades to Zend Guard Loader. 在Zend官方站点上搜索Zend Optimizer会导致Zend Guard Loader。 What's the difference between these programs? 这些程序有什么区别? Is there a way to install one of them via APT in Ubuntu or via PEAR or something? 有没有一种方法可以通过Ubuntu中的APT或PEAR或其他方式安装其中之一? And does one of them exclude using php 5.5? 并且其中之一排除使用php 5.5吗?

Testing the execution of the Loader didn't show any speed- improvement to me.. 对加载程序的执行进行测试对我而言没有任何速度上的提高。

Zend Loader scrambles a php file making it unreadable, and binds you to use the same PHP version number as when it was creating the encoded files, meaning you cannot upgrade from php 5.3 to 5.4 without re-encoding all your php files, which is a real pain if you do not have access to the original .php files. Zend Loader对一个php文件进行加扰,使其变得不可读,并与您绑定时使用与创建编码文件时相同的PHP版本号,这意味着您无法从php 5.3升级到5.4,而无需重新编码所有php文件。如果您无法访问原始的.php文件,那将是非常痛苦的事情。

packages that have files encoded are not anymore Open-source and make you dependent on their creator/developer, be aware that your server may not be upgraded unless your application is upgraded. 带有文件编码的软件包不再是开源的,并且使您依赖于其创建者/开发者,请注意,除非升级了应用程序,否则可能不会升级服务器。

From the Zend Optimizer+ / Zend OPcache source README : 从Zend Optimizer + / Zend OPcache源README

The Zend OPcache provides faster PHP execution through opcode caching and optimization. Zend OPcache通过操作码缓存和优化提供了更快的PHP执行。 It improves PHP performance by storing precompiled script bytecode in the shared memory. 它通过在共享内存中存储预编译的脚本字节码来提高PHP性能。 This eliminates the stages of reading code from the disk and compiling it on future access. 这消除了从磁盘读取代码并在以后访问时对其进行编译的阶段。 In addition, it applies a few bytecode optimization patterns that make code execution faster. 另外,它应用了一些字节码优化模式,从而使代码执行更快。

From the Zend Guard download page : 从Zend Guard 下载页面

Zend Guard Loader is a free application that runs the files encoded using Zend Guard and enhances the overall performance of your PHP applications. Zend Guard Loader是一个免费的应用程序,它运行使用Zend Guard编码的文件,并增强PHP应用程序的整体性能。

Zend Guard Loader only works with PHP 5.3 and 5.4. Zend Guard Loader仅适用于PHP 5.3和5.4。 Prior to PHP 5.3 the runtime decoding was a part of the Zend Optimizer . 在PHP 5.3之前,运行时解码是Zend Optimizer的一部分 Starting with PHP 5.3 the decoding capabilities were split out of the Optimizer and into the Guard Loader. 从PHP 5.3开始,解码功能从Optimizer分离到了Guard Loader。

Zend Guard does not appear to currently support PHP 5.5. Zend Guard似乎当前不支持PHP 5.5。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM