<?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 => 'es',
  ),
  'this' => 
  array (
    0 => 'streamwrapper.stream-set-option.php',
    1 => 'streamWrapper::stream_set_option',
    2 => 'Cambia las opciones del flujo',
  ),
  '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' => 'es',
    '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">Cambia las opciones del flujo</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-streamwrapper.stream-set-option-description">
  <h3 class="title">Descripción</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 es llamado para modificar las opciones del flujo.
  </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">
       Una de las constantes entre:
       <ul class="simplelist">
        <li><strong><code><a href="stream.constants.php#constant.stream-option-blocking">STREAM_OPTION_BLOCKING</a></code></strong> (Este método es llamado en respuesta 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> (Este método es llamado en respuesta 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> (Este método es llamado en respuesta 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> (Este método es llamado en respuesta 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">
       Si <code class="parameter">option</code> es
       <ul class="simplelist">
        <li><strong><code><a href="stream.constants.php#constant.stream-option-blocking">STREAM_OPTION_BLOCKING</a></code></strong>: modo de bloqueo solicitado (1 significa bloqueante, 0 no bloqueante).</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-read-timeout">STREAM_OPTION_READ_TIMEOUT</a></code></strong>: el tiempo de espera en segundos.</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-read-buffer">STREAM_OPTION_READ_BUFFER</a></code></strong>: el modo de buffer (<strong><code><a href="stream.constants.php#constant.stream-buffer-none">STREAM_BUFFER_NONE</a></code></strong> o <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>: el modo de buffer (<strong><code><a href="stream.constants.php#constant.stream-buffer-none">STREAM_BUFFER_NONE</a></code></strong> o <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">
       Si <code class="parameter">option</code> es
       <ul class="simplelist">
        <li><strong><code><a href="stream.constants.php#constant.stream-option-blocking">STREAM_OPTION_BLOCKING</a></code></strong>: esta opción no está activa.</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-read-timeout">STREAM_OPTION_READ_TIMEOUT</a></code></strong>: el tiempo de espera en microsegundos.</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-read-buffer">STREAM_OPTION_READ_BUFFER</a></code></strong>: el tamaño del buffer solicitado.</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-write-buffer">STREAM_OPTION_WRITE_BUFFER</a></code></strong>: el tamaño del buffer solicitado.</li>
       </ul>
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-streamwrapper.stream-set-option-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="para">
   Esta función retorna <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> en caso de éxito o <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si ocurre un error.
   Si <code class="parameter">option</code> no está implementada,
   <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> debe ser retornado.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-streamwrapper.stream-set-option-seealso">
  <h3 class="title">Ver también</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> - Configura el modo de bloqueo de un flujo</span></li>
    <li><span class="function"><a href="function.stream-set-timeout.php" class="function" rel="rdfs-seeAlso">stream_set_timeout()</a> - Configura el tiempo de espera de un flujo</span></li>
    <li><span class="function"><a href="function.stream-set-write-buffer.php" class="function" rel="rdfs-seeAlso">stream_set_write_buffer()</a> - Configura el buffer de escritura de un flujo</span></li>
   </ul>
  </p>
 </div>


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