add function_exists('apc_clear_cache') for apc_clear_cache() execute
add function_exists('apc_clear_cache') for apc_clear_cache() execute

as it may cant' run the method in console env.
antecedent/patchwork