【问题标题】:Zend Guard Loader not getting enabledZend Guard Loader 未启用
【发布时间】:2015-08-29 06:22:13
【问题描述】:

我正在尝试在我的 Xampp 控制面板中使用 Zend Guard Loader 优化我的 Zend 应用程序。为了安装和配置它,我做了以下配置设置。

我已经从 Zend Guard Loader 下载了 Zend Guard Loader for PHP 5.6 并将其解压缩到我的 D:/xampp/php/ext/Zend-Loader

它包含 ZendLoader.dllphp_opcache.dll

在我的php.ini 文件中,我已将其更新为:-

zend_extension_nts=D:/xampp/php/ext/Zend-Loader/ZendLoader.dll

[由于我的 php 启用了线程安全,因此使用了 zend_extension_nts]。

我也取消了注释和修改:-

  • opcache.enable=1
  • zend_loader.enable=1

现在当我使用 php -v 或使用 phpinfo() 检查它时,它没有显示 Zend Guard Loader 已启用。 任何帮助将不胜感激。配置它需要花费大量时间。还有 如果有人知道如何优化 Zend 应用程序的有效方法,请帮助。

【问题讨论】:

    标签: php zend-framework zend-cache zend-optimizer


    【解决方案1】:

    您还需要在ZendLoader.dll 之后加载php_opcache.dll

    指令zend_extension_nts 也应该是zend_extension。自 PHP 5.3.0 起,没有 zend_extension_ntszend_extension_ts 已被删除。

    所以你的 php.ini 应该有这些行:

    zend_extension=D:/xampp/php/ext/Zend-Loader/ZendLoader.dll
    zend_extension=D:/xampp/php/ext/Zend-Loader/php_opcache.dll
    
    zend_loader.enable=1
    

    【讨论】:

    • 我做了所有这些步骤,但仍然没有加载。你能在这里更新更多吗?。
    【解决方案2】:

    试试这个:

    我的版本是 Win Server 2008 R2 Enterprise x64 上的 PHP 5.6 nts

    【讨论】:

      猜你喜欢
      • 2012-10-06
      • 1970-01-01
      • 2015-11-11
      • 2014-12-02
      • 2014-10-19
      • 2014-04-19
      • 2016-02-15
      • 2013-04-15
      • 2013-12-07
      相关资源
      最近更新 更多