memcache_debug

(PECL memcache >= 0.2.0)

memcache_debug打开/关闭调试输出

说明

memcache_debug(bool $on_off): bool

如果参数 on_offtruememcache_debug() 打开调试输出,如果为 false,则关闭调试输出。

注意:

memcache_debug() 仅在 PHP 以 --enable-debug 选项编译时可以访问,并且在这种情况下始终返回 true,其他情况下此函数无效并始终返回 false

参数

on_off

如果为 true,则打开调试输出。如果为 false 则关闭调试输出。

返回值

当 PHP 以 --enalbe-debug 选项编译时返回 true 其他情况下返回 false

add a note add a note

User Contributed Notes 2 notes

up
0
csongor at halmai dot hu
9 years ago
In PHP 5.5.14 this function returns NULL (not TRUE or FALSE). I have no information about other PHP releases.
up
0
markus at buyways dot nl
14 years ago
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)
To Top