<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.shmop.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.shmop-close.php',
    1 => 'shmop_close',
    2 => '共有メモリブロックを閉じる',
  ),
  'up' => 
  array (
    0 => 'ref.shmop.php',
    1 => '共有メモリ関数',
  ),
  'prev' => 
  array (
    0 => 'ref.shmop.php',
    1 => '共有メモリ関数',
  ),
  'next' => 
  array (
    0 => 'function.shmop-delete.php',
    1 => 'shmop_delete',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/shmop/functions/shmop-close.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.shmop-close" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">shmop_close</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">shmop_close</span> &mdash; <span class="dc-title">共有メモリブロックを閉じる</span></p>

 </div>

 <div id="function.shmop-close-refsynopsisdiv">
  <div class="warning"><strong class="warning">警告</strong><p class="simpara">この関数は PHP 8.0.0 で
<em>非推奨</em>になります。この関数に頼らないことを強く推奨します。</p></div>
 </div>

 <div class="refsect1 description" id="refsect1-function.shmop-close-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="attribute"><a href="class.deprecated.php">#[\Deprecated]</a> </span><br>
   <span class="methodname"><strong>shmop_close</strong></span>(<span class="methodparam"><span class="type"><a href="class.shmop.php" class="type Shmop">Shmop</a></span> <code class="parameter">$shmop</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <blockquote class="note"><p><strong class="note">注意</strong>: 
 <p class="para">
  この関数を実行しても何も起こりません。PHP 8.0.0 より前のバージョンでは、この関数はリソースを閉じるのに使われていました。
 </p>
</p></blockquote>

  <p class="simpara">
   <span class="function"><strong>shmop_close()</strong></span> は、共有メモリブロックを閉じます。
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.shmop-close-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   
    <dt><code class="parameter">shmop</code></dt>
    <dd>
     <span class="simpara">
      <span class="function"><a href="function.shmop-open.php" class="function">shmop_open()</a></span> 関数で作られた共有メモリブロックのリソース。
     </span>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.shmop-close-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="simpara">
   値を返しません。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.shmop-close-changelog">
  <h3 class="title">変更履歴</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>バージョン</th>
      <th>説明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       この関数は推奨されなくなりました。
       この関数を実行しても何も起きないからです。
      </td>
     </tr>

     <tr>
      <td>8.0.0</td>
      <td>
        引数 <code class="parameter">shmop</code> は、
        <span class="classname"><a href="class.shmop.php" class="classname">Shmop</a></span> クラスのインスタンスを期待するようになりました。
        これより前のバージョンでは、リソースが期待されていました。
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.shmop-close-examples">
  <h3 class="title">例</h3>
  <div class="example" id="example-1">
   <p><strong>例1 共有メモリブロックを閉じる</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />shmop_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$shm_id</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
  <p class="simpara">
   この例は、<code class="literal">$shm_id</code> で識別される共有メモリブロックを閉じます。
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.shmop-close-seealso">
  <h3 class="title">参考</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.shmop-open.php" class="function" rel="rdfs-seeAlso">shmop_open()</a> - 共有メモリブロックを作成またはオープンする</span></li>
  </ul>
 </div>

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