<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.zip.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.zip-entry-read.php',
    1 => 'zip_entry_read',
    2 => '读取一个打开了的压缩目录实体',
  ),
  'up' => 
  array (
    0 => 'ref.zip.php',
    1 => 'Zip 函数',
  ),
  'prev' => 
  array (
    0 => 'function.zip-entry-open.php',
    1 => 'zip_entry_open',
  ),
  'next' => 
  array (
    0 => 'function.zip-open.php',
    1 => 'zip_open',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/zip/functions/zip-entry-read.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.zip-entry-read" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">zip_entry_read</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.1.0, PHP 5 &gt;= 5.2.0, PHP 7, PHP 8, PECL zip &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">zip_entry_read</span> &mdash; <span class="dc-title">读取一个打开了的压缩目录实体</span></p>

 </div>

 <div id="function.zip-entry-read-refsynopsisdiv">
   <div class="warning"><strong class="warning">警告</strong><p class="simpara">本函数已自 PHP 8.0.0
 起被<em>废弃</em>。强烈建议不要依赖本函数。</p></div>
 </div>

 <div class="refsect1 description" id="refsect1-function.zip-entry-read-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="attribute"><a href="class.deprecated.php">#[\Deprecated]</a> </span><br>
   <span class="methodname"><strong>zip_entry_read</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$zip_entry</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$len</code><span class="initializer"> = 1024</span></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   读取一个打开了的压缩目录实体。
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.zip-entry-read-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">zip_entry</code></dt>
     <dd>
      <p class="para">
       由函数<span class="function"><a href="function.zip-read.php" class="function">zip_read()</a></span> 返回的目录实体。
      </p>
     </dd>
    
    
     <dt><code class="parameter">len</code></dt>
     <dd>
      <p class="para">
       需要返回的字节数。
      </p>
      <blockquote class="note"><p><strong class="note">注意</strong>: 
       <p class="para">
        这字节数应该是你所要读取的未压缩的字节数。
       </p>
      </p></blockquote>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.zip-entry-read-changelog">
  <h3 class="title">更新日志</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>版本</th>
       <th>说明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.0.0</td>
       <td>
        弃用此函数，取而代之的是对象 API，请参阅 <span class="methodname"><a href="ziparchive.getfromindex.php" class="methodname">ZipArchive::getFromIndex()</a></span>。
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.zip-entry-read-seealso">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功的时候返回读取到的数据；到达文件末尾的时候返回一个空的字符串；
   读取出错的时候则会返回<strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> 
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.zip-entry-read-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.zip-entry-open.php" class="function" rel="rdfs-seeAlso">zip_entry_open()</a> - 打开用于读取的目录实体</span></li>
    <li><span class="function"><a href="function.zip-entry-close.php" class="function" rel="rdfs-seeAlso">zip_entry_close()</a> - 关闭目录项</span></li>
    <li><span class="function"><a href="function.zip-entry-filesize.php" class="function" rel="rdfs-seeAlso">zip_entry_filesize()</a> - 检索目录实体的实际大小</span></li>
   </ul>
  </p>
 </div>


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