PHP - Memcache_Debug() 函式



Memcache_Debug() 函式可以開啟/關閉除錯輸出。

語法

bool memcache_debug( bool $on_off )

如果引數 on_off 等於 true,Memcache_Debug() 函式可以開啟除錯輸出;如果等於 false,則關閉除錯輸出。

注意:只有在 PHP 使用 --enable-debug 選項構建時,才能訪問 Memcache_Debug() 函式,並且在這種情況下始終返回 true。否則,此函式無法生效,並且始終返回 false。

如果 PHP 使用 --enable-debug 選項構建,則 Memcache_Debug() 函式可以返回 true,否則返回 false。

廣告