memcache_debug()
(PECL memcache >= 0.2.0)
转换调试输出的开/关
说明
memcache_debug(bool $on_off): bool
memcache_debug()在参数$on_off设置为TRUE
时打开调试输出,在值为FALSE
时关闭调试输出。
Note:memcache_debug()仅仅在PHP以--enable-debug方式编译时可以访问,并且总是返回
TRUE
,其他情况下此函数不会产生任何影响并总是返回FALSE
。
参数
- $on_off
TRUE
表明打开调试输出。FALSE
表明关闭调试输出。
返回值
当PHP以--enalbe-debug选项构建时返回TRUE
其他情况下返回FALSE
。
In PHP 5.5.14 this function returns NULL (not TRUE or FALSE). I have no information about other PHP releases.
This method is deprecated in at least PHP 5.2.6 memcache_debug() [<a href='function.memcache-debug'>function.memcache-debug</a>]: memcache_debug() is deprecated, please use a debugger (like Eclipse + CDT)