Zend Optimizer (下简称 ZO) 是 PHP 官方推荐的 PHP 代码优化工具,在 FreeBSD 下安装 ZO 时,一个常见的问题是明明提示安装成功,但是在查看 phpinfo 时,却发现 ZO 并没有正常加载,或者加载了也不工作,本文介绍的就是这一问题的解决办法。
Zend Optimizer 安装文档中的说明:
The Zend Optimizer will not run if the following PHP settings are enabled:
Debug Mode - Check that your PHP was compiled in non-debug mode -
This can be checked by looking at the top part of the phpinfo() function
output and checking "Debug Build" row (ZEND_DEBUG in older PHP
versions) - it should say "no".