<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.sem.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.shm-detach.php',
    1 => 'shm_detach',
    2 => 'Lib&egrave;re un segment de m&eacute;moire partag&eacute;e',
  ),
  'up' => 
  array (
    0 => 'ref.sem.php',
    1 => 'Fonctions S&eacute;maphore',
  ),
  'prev' => 
  array (
    0 => 'function.shm-attach.php',
    1 => 'shm_attach',
  ),
  'next' => 
  array (
    0 => 'function.shm-get-var.php',
    1 => 'shm_get_var',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/sem/functions/shm-detach.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.shm-detach" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">shm_detach</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">shm_detach</span> &mdash; <span class="dc-title">Libère un segment de mémoire partagée</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.shm-detach-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>shm_detach</strong></span>(<span class="methodparam"><span class="type"><a href="class.sysvsharedmemory.php" class="type SysvSharedMemory">SysvSharedMemory</a></span> <code class="parameter">$shm</code></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>

  <p class="simpara">
   <span class="function"><strong>shm_detach()</strong></span> libère le segment de
   mémoire partagée identifié par
   <code class="parameter">shm</code> et créé par
   <span class="function"><a href="function.shm-attach.php" class="function">shm_attach()</a></span>. N&#039;oubliez pas que cette mémoire
   partagée existe toujours sous Unix, et que les
   données sont toujours accessibles.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.shm-detach-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   
    <dt><code class="parameter">shm</code></dt>
    <dd>
     <span class="simpara">
      Un segment de mémoire partagée obtenu depuis <span class="function"><a href="function.shm-attach.php" class="function">shm_attach()</a></span>.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.shm-detach-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="simpara">
   Retourne toujours <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.shm-detach-changelog">
  <h3 class="title">Historique</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.5.0</td>
      <td>
       Le type de retour est désormais <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> ; auparavant, c&#039;était <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>.
      </td>
     </tr>

     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">shm</code> attend une instance de <span class="classname"><a href="class.sysvsharedmemory.php" class="classname">SysvSharedMemory</a></span>
       désormais; auparavant, une <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> était attendue.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.shm-detach-seealso">
  <h3 class="title">Voir aussi</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.shm-attach.php" class="function" rel="rdfs-seeAlso">shm_attach()</a> - Cr&eacute;e ou ouvre un segment de m&eacute;moire partag&eacute;e</span></li>
   <li><span class="function"><a href="function.shm-remove.php" class="function" rel="rdfs-seeAlso">shm_remove()</a> - Supprime un segment de m&eacute;moire partag&eacute;e sous Unix</span></li>
   <li><span class="function"><a href="function.shm-remove-var.php" class="function" rel="rdfs-seeAlso">shm_remove_var()</a> - Efface une variable de la m&eacute;moire partag&eacute;e</span></li>
  </ul>
 </div>


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