memcache_debug

(PECL memcache >= 0.2.0)

memcache_debugActiva/desactiva debug output

Descripción

memcache_debug(bool $on_off): bool

memcache_debug() activa el debug output si el parámetro on_off es igual a true y lo desactiva si es igual a false.

Nota:

Solamente se puede acceder a memcache_debug() si PHP fue compilado con la opción --enable-debug y en este caso siempre retorna true. De lo contrario, esta función no tiene ningún efecto y siempre devuelve false.

Parámetros

on_off

Activa debug output si es igual a true. Desactiva debug output si es igual a false.

Valores devueltos

Devuelve true si PHP fue compilado con la opción --enable-debug, de lo contrario devuelve 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