downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/function.memcache-debug.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/ref.memcache.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'function.memcache-debug.php',
   
1 => 'memcache_debug',
  ),
 
'up' =>
  array (
   
0 => 'ref.memcache.php',
   
1 => 'Memcache Functions',
  ),
 
'prev' =>
  array (
   
0 => 'function.memcache-connect.php',
   
1 => 'Memcache::connect',
  ),
 
'next' =>
  array (
   
0 => 'function.memcache-decrement.php',
   
1 => 'Memcache::decrement',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="function.memcache-debug" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">memcache_debug</h1>
  <p class="verinfo">(PECL memcache &gt;= 0.2.0)</p><p class="refpurpose"><span class="refname">memcache_debug</span> &mdash; <span class="dc-title">Turn debug output on/off</span></p>

 </div>

 <a name="function.memcache-debug.description"></a><div class="refsect1 description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><b>memcache_debug</b></span>
    ( <span class="methodparam"><span class="type">bool</span> <tt class="parameter">$on_off</tt></span>
   )</div>


  <p class="para rdfs-comment">
   <b>memcache_debug()</b> turns on debug output if parameter
   <i><tt class="parameter">on_off</tt></i>
 is equal to <b><tt class="constant">TRUE</tt></b> and turns off if it&#039;s
   <b><tt class="constant">FALSE</tt></b>.
   </p><blockquote><p><b class="note">Note</b>:
   
     <b>memcache_debug()</b> is accessible only if PHP was built
     with --enable-debug option and always returns <b><tt class="constant">TRUE</tt></b> in this case.
     Otherwise, this function has no effect and always returns <b><tt class="constant">FALSE</tt></b>.
    <br />
   </p></blockquote><p>
  </p>

 </div>


 <a name="function.memcache-debug.parameters"></a><div class="refsect1 parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   </p><dl>

    <dt class="varlistentry">

     <span class="term"><i><tt class="parameter">on_off</tt></i>
</span>

     </dt><dd class="listitem">

      <p class="para">
       Turns debug output on if equals to <b><tt class="constant">TRUE</tt></b>.
       Turns debug output off if equals to <b><tt class="constant">FALSE</tt></b>.
      </p>
     </dd>

   
   </dl>
<p>
  </p>
 </div>


 <a name="function.memcache-debug.returnvalues"></a><div class="refsect1 returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <b><tt class="constant">TRUE</tt></b> if PHP was built with --enable-debug option, otherwise
   returns <b><tt class="constant">FALSE</tt></b>.
  </p>
 </div>


</div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites