我在命令行中遇到了APC问题 - 我运行的脚本告诉我apc_fetch是未定义的。如果我做了function_exists('apc_fetch');它在命令行外输出真,但是如果我做了php --rf apc_fetch它告诉我它不存在。Apc_fetch在CLI中未定义
我在php.ini中启用了APC(启用& enable_cli),它显示在我的phpinfo中。 APC状态页面显示以下信息:
apc.cache_by_default 1
apc.canonicalize 1
apc.coredump_unmap 0
apc.enable_cli 1
apc.enabled 1
apc.file_md5 0
apc.file_update_protection 2
apc.filters
apc.gc_ttl 3600
apc.include_once_override 0
apc.lazy_classes 0
apc.lazy_functions 0
apc.max_file_size 1M
apc.num_files_hint 1000
apc.preload_path
apc.report_autofilter 0
apc.rfc1867 0
apc.rfc1867_freq 0
apc.rfc1867_name APC_UPLOAD_PROGRESS
apc.rfc1867_prefix upload_
apc.rfc1867_ttl 3600
apc.serializer default
apc.shm_segments 1
apc.shm_size 32M
apc.slam_defense 1
apc.stat 1
apc.stat_ctime 0
apc.ttl 0
apc.use_request_time 1
apc.user_entries_hint 4096
apc.user_ttl 0
apc.write_lock 1
我在做什么错? (我试图使用Doctrine的模式生成器,在WAMP上使用CodeIgniter)
什么`PHP -i | grep的-i apc`节目吗? CLI和apache驱动的php总是有不同的php.ini的 – zerkms 2011-12-13 19:11:29
@zerkms - 当我做`php -i`时,似乎没有任何对APC的引用。有什么可以做到这一点?我查看了php.ini文件(Apache和PHP),它们都有`apc.enabled = 1`和'apc.enable_cli = 1`。你有什么建议? – RS7 2011-12-13 19:31:14