<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.streamwrapper.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'pt_BR',
  ),
  'this' => 
  array (
    0 => 'streamwrapper.stream-set-option.php',
    1 => 'streamWrapper::stream_set_option',
    2 => 'Altera as op&ccedil;&otilde;es do fluxo',
  ),
  'up' => 
  array (
    0 => 'class.streamwrapper.php',
    1 => 'streamWrapper',
  ),
  'prev' => 
  array (
    0 => 'streamwrapper.stream-seek.php',
    1 => 'streamWrapper::stream_seek',
  ),
  'next' => 
  array (
    0 => 'streamwrapper.stream-stat.php',
    1 => 'streamWrapper::stream_stat',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'pt_BR',
    'path' => 'reference/stream/streamwrapper/stream-set-option.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="streamwrapper.stream-set-option" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">streamWrapper::stream_set_option</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">streamWrapper::stream_set_option</span> &mdash; <span class="dc-title">Altera as opções do fluxo</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-streamwrapper.stream-set-option-description">
  <h3 class="title">Descrição</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>streamWrapper::stream_set_option</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$option</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$arg1</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$arg2</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Este método é chamado para definir as opções no fluxo.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-streamwrapper.stream-set-option-parameters">
  <h3 class="title">Parâmetros</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">option</code></dt>
     <dd>
      <p class="para">
       Uma das opções:
       <ul class="simplelist">
        <li><strong><code><a href="stream.constants.php#constant.stream-option-blocking">STREAM_OPTION_BLOCKING</a></code></strong> (o método foi chamado em resposta a <span class="function"><a href="function.stream-set-blocking.php" class="function">stream_set_blocking()</a></span>)</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-read-timeout">STREAM_OPTION_READ_TIMEOUT</a></code></strong> (o método foi chamado em resposta a <span class="function"><a href="function.stream-set-timeout.php" class="function">stream_set_timeout()</a></span>)</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-read-buffer">STREAM_OPTION_READ_BUFFER</a></code></strong> (o método foi chamado em resposta a <span class="function"><a href="function.stream-set-read-buffer.php" class="function">stream_set_read_buffer()</a></span>)</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-write-buffer">STREAM_OPTION_WRITE_BUFFER</a></code></strong> (o método foi chamado em resposta a <span class="function"><a href="function.stream-set-write-buffer.php" class="function">stream_set_write_buffer()</a></span>)</li>
       </ul>
      </p>
     </dd>
    
    
     <dt><code class="parameter">arg1</code></dt>
     <dd>
      <p class="para">
       Se <code class="parameter">option</code> for
       <ul class="simplelist">
        <li><strong><code><a href="stream.constants.php#constant.stream-option-blocking">STREAM_OPTION_BLOCKING</a></code></strong>: modo de bloqueio requerido (1 significa bloqueio e 0 sem bloqueio).</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-read-timeout">STREAM_OPTION_READ_TIMEOUT</a></code></strong>: limite de tempo em segundos.</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-read-buffer">STREAM_OPTION_READ_BUFFER</a></code></strong>: modo de buffer (<strong><code><a href="stream.constants.php#constant.stream-buffer-none">STREAM_BUFFER_NONE</a></code></strong> ou <strong><code><a href="stream.constants.php#constant.stream-buffer-full">STREAM_BUFFER_FULL</a></code></strong>).</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-write-buffer">STREAM_OPTION_WRITE_BUFFER</a></code></strong>: modo de buffer (<strong><code><a href="stream.constants.php#constant.stream-buffer-none">STREAM_BUFFER_NONE</a></code></strong> ou <strong><code><a href="stream.constants.php#constant.stream-buffer-full">STREAM_BUFFER_FULL</a></code></strong>).</li>
       </ul>
      </p>
     </dd>
    
    
     <dt><code class="parameter">arg2</code></dt>
     <dd>
      <p class="para">
       Se <code class="parameter">option</code> for
       <ul class="simplelist">
        <li><strong><code><a href="stream.constants.php#constant.stream-option-blocking">STREAM_OPTION_BLOCKING</a></code></strong>: esta opção não está definida.</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-read-timeout">STREAM_OPTION_READ_TIMEOUT</a></code></strong>: limite de tempo em microssegundos.</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-read-buffer">STREAM_OPTION_READ_BUFFER</a></code></strong>: tamanho do buffer de leitura requerido.</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-write-buffer">STREAM_OPTION_WRITE_BUFFER</a></code></strong>: tamanho do buffer de gravação requerido.</li>
       </ul>
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-streamwrapper.stream-set-option-returnvalues">
  <h3 class="title">Valor Retornado</h3>
  <p class="para">
   Retorna <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> em caso de sucesso ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> em caso de falha.
   Se <code class="parameter">option</code> não for implementada, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> deve ser
   retornado.
  </p>
 </div>




 <div class="refsect1 seealso" id="refsect1-streamwrapper.stream-set-option-seealso">
  <h3 class="title">Veja Também</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.stream-set-blocking.php" class="function" rel="rdfs-seeAlso">stream_set_blocking()</a> - Definir modo de bloqueio/n&atilde;o-bloqueio em um fluxo</span></li>
    <li><span class="function"><a href="function.stream-set-timeout.php" class="function" rel="rdfs-seeAlso">stream_set_timeout()</a> - Define o limite de tempo em um fluxo</span></li>
    <li><span class="function"><a href="function.stream-set-write-buffer.php" class="function" rel="rdfs-seeAlso">stream_set_write_buffer()</a> - Define o tamanho do buffer de escrita do fluxo</span></li>
   </ul>
  </p>
 </div>


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