eAccelerator php eaccelerator_put



我已与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

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

问题出在哪里?

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

<?php
print_r(get_extension_funcs('eaccelerator'));
?>

相关内容

  • 没有找到相关文章

最新更新