<?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 => 'zh',
  ),
  'this' => 
  array (
    0 => 'streamwrapper.stream-eof.php',
    1 => 'streamWrapper::stream_eof',
    2 => 'Tests for end-of-file on a file pointer',
  ),
  'up' => 
  array (
    0 => 'class.streamwrapper.php',
    1 => 'streamWrapper',
  ),
  'prev' => 
  array (
    0 => 'streamwrapper.stream-close.php',
    1 => 'streamWrapper::stream_close',
  ),
  'next' => 
  array (
    0 => 'streamwrapper.stream-flush.php',
    1 => 'streamWrapper::stream_flush',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/stream/streamwrapper/stream-eof.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="streamwrapper.stream-eof" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">streamWrapper::stream_eof</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.2, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">streamWrapper::stream_eof</span> &mdash; <span class="dc-title">Tests for end-of-file on a file pointer</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-streamwrapper.stream-eof-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>streamWrapper::stream_eof</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   This method is called in response to <span class="function"><a href="function.feof.php" class="function">feof()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-streamwrapper.stream-eof-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-streamwrapper.stream-eof-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Should return <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if the read/write position is at the end of the stream and if no more data is available to be read, or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> otherwise.
  </p>
 </div>




 <div class="refsect1 notes" id="refsect1-streamwrapper.stream-eof-notes">
  <h3 class="title">注释</h3>
  <div class="warning"><strong class="warning">警告</strong>
    <p class="para">
      When reading the whole file (for example, with 
      <span class="function"><a href="function.file-get-contents.php" class="function">file_get_contents()</a></span>), PHP will call     
      <span class="methodname"><a href="streamwrapper.stream-read.php" class="methodname">streamWrapper::stream_read()</a></span> followed by
      <span class="methodname"><strong>streamWrapper::stream_eof()</strong></span> in a loop but as long
      as <span class="methodname"><a href="streamwrapper.stream-read.php" class="methodname">streamWrapper::stream_read()</a></span> returns a
      non-empty string, the return value of
      <span class="methodname"><strong>streamWrapper::stream_eof()</strong></span> is ignored.
    </p>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-streamwrapper.stream-eof-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.feof.php" class="function" rel="rdfs-seeAlso">feof()</a> - 测试文件指针是否到了文件结束的位置</span></li>
   </ul>
  </p>
 </div>


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