<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'streamwrapper.stream-set-option.php',
    1 => 'streamWrapper::stream_set_option',
    2 => 'ストリームのオプションを変更する',
  ),
  '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' => 'ja',
    '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">ストリームのオプションを変更する</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-streamwrapper.stream-set-option-description">
  <h3 class="title">説明</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">
   このメソッドは、ストリームのオプションを設定する際にコールされます。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-streamwrapper.stream-set-option-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">option</code></dt>
     <dd>
      <p class="para">
       以下のいずれか。
       <ul class="simplelist">
        <li><strong><code><a href="stream.constants.php#constant.stream-option-blocking">STREAM_OPTION_BLOCKING</a></code></strong> (このメソッドは、<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> (このメソッドは、<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> (このメソッドは、<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> (このメソッドは、<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">
       <code class="parameter">option</code> の値に応じて、以下の内容となります。
       <ul class="simplelist">
        <li><strong><code><a href="stream.constants.php#constant.stream-option-blocking">STREAM_OPTION_BLOCKING</a></code></strong>: 要求されたブロックモード (1 はブロックモード、0 は非ブロックモード)。</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-read-timeout">STREAM_OPTION_READ_TIMEOUT</a></code></strong>: タイムアウト秒数。</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-read-buffer">STREAM_OPTION_READ_BUFFER</a></code></strong>: バッファモード (<strong><code><a href="stream.constants.php#constant.stream-buffer-none">STREAM_BUFFER_NONE</a></code></strong> あるいは <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>: バッファモード (<strong><code><a href="stream.constants.php#constant.stream-buffer-none">STREAM_BUFFER_NONE</a></code></strong> あるいは <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">
       <code class="parameter">option</code> の値に応じて、以下の内容となります。
       <ul class="simplelist">
        <li><strong><code><a href="stream.constants.php#constant.stream-option-blocking">STREAM_OPTION_BLOCKING</a></code></strong>: このオプションは設定されません。</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-read-timeout">STREAM_OPTION_READ_TIMEOUT</a></code></strong>: タイムアウトマイクロ秒数。</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-read-buffer">STREAM_OPTION_READ_BUFFER</a></code></strong>: 要求されたバッファサイズ。</li>
        <li><strong><code><a href="stream.constants.php#constant.stream-option-write-buffer">STREAM_OPTION_WRITE_BUFFER</a></code></strong>: 要求されたバッファサイズ。</li>
       </ul>
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-streamwrapper.stream-set-option-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   成功した場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を、失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
   <code class="parameter">option</code> が実装されていない場合は <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返さなければなりません。
  </p>
 </div>




 <div class="refsect1 seealso" id="refsect1-streamwrapper.stream-set-option-seealso">
  <h3 class="title">参考</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> - ストリームのブロックモードを有効にする / 解除する</span></li>
    <li><span class="function"><a href="function.stream-set-timeout.php" class="function" rel="rdfs-seeAlso">stream_set_timeout()</a> - ストリームにタイムアウトを設定する</span></li>
    <li><span class="function"><a href="function.stream-set-write-buffer.php" class="function" rel="rdfs-seeAlso">stream_set_write_buffer()</a> - 指定されたストリームのファイル書き込みバッファリングを有効にする</span></li>
   </ul>
  </p>
 </div>


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