【发布时间】:2012-08-19 23:50:14
【问题描述】:
当我通过 shell_exec() 调用 PHP 脚本 (process.php) 时发现一个奇怪的错误 留言:
Fatal error: Uncaught exception 'Zend_Cache_Exception' with message 'The memcache extension must be loaded for using this backend !' in /Applications/XAMPP/xamppfiles/htdocs/shared_lib/ZendFramework/1.5.2-patched/Zend/Cache.php:208
但是,如果我在终端调用它,我可以调用 process.php 没有任何错误。
伪代码:
control.php
// some business logic ....
shell_exec("php process.php");
// some business logic ....
process.php
// some business logic ....
call Zend_Cache to retrieve data from memecache
// some business logic ....
【问题讨论】:
-
php -i |grep loaded -i
标签: php zend-framework memcached shell-exec