1

我已经与 eAccelerator 共享主机

> eAccelerator
> 
> eAccelerator support  enabled
> Version   0.9.6.1 Caching Enabled true
> Optimizer Enabled true Check mtime
> Enabled   true Memory Size    536,870,840
> Bytes Memory Available    365,415,144
> Bytes Memory Allocated    171,455,696
> Bytes Cached Scripts  1649 Removed
> Scripts   0
> 
> Directive Local Value Master Value
> eaccelerator.allowed_admin_path   no
> value no value
> eaccelerator.cache_dir    /tmp/eaccelerator   /tmp/eaccelerator
> eaccelerator.check_mtime  1   1
> eaccelerator.debug    0   0
> eaccelerator.enable   1   1
> eaccelerator.filter   no value    no value
> eaccelerator.log_file no value    no
> value eaccelerator.optimizer  1   1
> eaccelerator.shm_max  0   0
> eaccelerator.shm_only 1   1
> eaccelerator.shm_prune_period 0   0
> eaccelerator.shm_size 512 512
> eaccelerator.shm_ttl  0   0

但是当我尝试使用 apieaccelerator_put('zz', time());我得到错误Fatal error: Call to undefined function eaccelerator_put()

问题是什么?

4

1 回答 1

5

默认情况下,eAccelerator 中禁用共享内存。您必须使用该--with-eaccelerator-shared-memory标志专门编译它。您可以使用以下代码片段检查 eAccelerator 中启用了哪些功能:

<?php
print_r(get_extension_funcs('eaccelerator'));
?>
于 2011-06-25T14:44:19.897 回答