<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = 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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.memcache-debug.php',
    1 => 'memcache_debug',
    2 => 'デバッグ出力のオン/オフを切り替える',
  ),
  'up' => 
  array (
    0 => 'ref.memcache.php',
    1 => 'Memcache 関数',
  ),
  'prev' => 
  array (
    0 => 'ref.memcache.php',
    1 => 'Memcache 関数',
  ),
  'next' => 
  array (
    0 => 'book.memcached.php',
    1 => 'Memcached',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/memcache/functions/memcache-debug.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<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">デバッグ出力のオン/オフを切り替える</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.memcache-debug-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>memcache_debug</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$on_off</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>


  <p class="para rdfs-comment">
   <span class="function"><strong>memcache_debug()</strong></span> は、パラメータ
   <code class="parameter">on_off</code> が <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> の場合にデバッグ出力を有効にし、
   <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> の場合には無効にします。
   <blockquote class="note"><p><strong class="note">注意</strong>: 
    <span class="simpara">
     <span class="function"><strong>memcache_debug()</strong></span> は、PHP が
     --enable-debug オプションをつけてビルドされている場合にのみ使用可能で、
     この場合は常に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を返します。そうでない場合は、この関数は
     何も行わずに常に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
    </span>
   </p></blockquote>
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.memcache-debug-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   
    <dt><code class="parameter">on_off</code></dt>
    <dd>
     <span class="simpara">
      <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> にすると、デバッグ出力をオンにします。
      <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> にすると、デバッグ出力をオフにします。
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.memcache-debug-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="simpara">
   PHP が --enable-debug オプションをつけてビルドされている場合に
   <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>、それ以外の場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>


</div><?php manual_footer($setup); ?>