PHP Conference Kansai 2025

memcache_debug

(PECL memcache >= 0.2.0)

memcache_debugTurn debug output on/off

Опис

memcache_debug(bool $on_off): bool

memcache_debug() turns on debug output if parameter on_off is equal to true and turns off if it's false.

Зауваження:

memcache_debug() is accessible only if PHP was built with --enable-debug option and always returns true in this case. Otherwise, this function has no effect and always returns false.

Параметри

on_off

Turns debug output on if equals to true. Turns debug output off if equals to false.

Значення, що повертаються

Returns true if PHP was built with --enable-debug option, otherwise returns false.

add a note

User Contributed Notes 2 notes

up
0
csongor at halmai dot hu
10 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
15 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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant