<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.curl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ru',
  ),
  'this' => 
  array (
    0 => 'function.curl-pause.php',
    1 => 'curl_pause',
    2 => 'Приостанавливает и возобновляет соединение',
  ),
  'up' => 
  array (
    0 => 'ref.curl.php',
    1 => 'Функции cURL',
  ),
  'prev' => 
  array (
    0 => 'function.curl-multi-strerror.php',
    1 => 'curl_multi_strerror',
  ),
  'next' => 
  array (
    0 => 'function.curl-reset.php',
    1 => 'curl_reset',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ru',
    'path' => 'reference/curl/functions/curl-pause.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.curl-pause" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">curl_pause</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">curl_pause</span> &mdash; <span class="dc-title">Приостанавливает и возобновляет соединение</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.curl-pause-description">
  <h3 class="title">Описание</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>curl_pause</strong></span>(<span class="methodparam"><span class="type"><a href="class.curlhandle.php" class="type CurlHandle">CurlHandle</a></span> <code class="parameter">$handle</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$flags</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Функция ставит или снимает с паузы cURL-сессию.
   Сессию можно приостановить во время передачи данных в направлении чтения,
   записи или в обоих направлениях путём вызова этой функции из callback-функции,
   которую зарегистрировали функцией <span class="function"><a href="function.curl-setopt.php" class="function">curl_setopt()</a></span>.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.curl-pause-parameters">
  <h3 class="title">Список параметров</h3>
  <dl>
   <dt><code class="parameter">handle</code>
</dt><dd><p class="para">Дескриптор модуля cURL, который вернула функция <span class="function"><a href="function.curl-init.php" class="function">curl_init()</a></span>.</p></dd>
   
    <dt><code class="parameter">flags</code></dt>
    <dd>
     <p class="para">
      Одна из констант <strong><code><a href="curl.constants.php#constant.curlpause-all">CURLPAUSE_<span class="replaceable">*</span></a></code></strong>.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.curl-pause-returnvalues">
  <h3 class="title">Возвращаемые значения</h3>
  <p class="para">
   Функция возвращает код ошибки или значение константы <strong><code><a href="curl.constants.php#constant.curle-ok">CURLE_OK</a></code></strong>,
   если ошибок не возникло.
  </p>
 </div>


  <div class="refsect1 changelog" id="refsect1-function.curl-pause-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>
  Параметр <code class="parameter">handle</code> теперь принимает объект <span class="classname"><a href="class.curlhandle.php" class="classname">CurlHandle</a></span>;
  раньше, параметр ждал ресурс (<span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>).
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


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