gpt4 book ai didi

php内存缓存错误

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:51:47 26 4
gpt4 key购买 nike

每次我尝试对 memcached 使用 add() 函数时,我都会收到以下错误:

A PHP Error was encountered

Severity: Warning

Message: MemcachePool::add(): The lowest two bytes of the flags array is reserved for pecl/memcache internal use

Filename: libraries/memcached_library.php

Line Number: 92

有什么问题吗?我将这个库用于 codeigniter:http://github.com/trs21219/memcached-library

最佳答案

你是 64 位的吗?看起来这是最近发现的 pecl/memcache 错误:http://pecl.php.net/bugs/bug.php?id=18567

这似乎与压缩标志有关。它不能再是 bool 值,根据 this source code 它需要是一个整数

/**
* The compressed argument on Memcache::add, Memcache::set and Memcache::replace takes
* an integer not a boolean. Since pecl/memcache 3.0.3 booleans now leads to warnings like
* The lowest two bytes of the flags array is reserved for pecl/memcache internal use
*/

关于php内存缓存错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3740317/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com