CakeFest 2024: The Official CakePHP Conference

memcache_debug

(PECL memcache >= 0.2.0)

memcache_debugデバッグ出力のオン/オフを切り替える

説明

memcache_debug(bool $on_off): bool

memcache_debug() は、パラメータ on_offtrue の場合にデバッグ出力を有効にし、 false の場合には無効にします。

注意:

memcache_debug() は、PHP が --enable-debug オプションをつけてビルドされている場合にのみ使用可能で、 この場合は常に true を返します。そうでない場合は、この関数は 何も行わずに常に false を返します。

パラメータ

on_off

true にすると、デバッグ出力をオンにします。 false にすると、デバッグ出力をオフにします。

戻り値

PHP が --enable-debug オプションをつけてビルドされている場合に true、それ以外の場合に false を返します。

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