<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/yar.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'yar.requirements.php',
    1 => '需求',
    2 => '需求',
  ),
  'up' => 
  array (
    0 => 'yar.setup.php',
    1 => '安装/配置',
  ),
  'prev' => 
  array (
    0 => 'yar.setup.php',
    1 => '安装/配置',
  ),
  'next' => 
  array (
    0 => 'yar.installation.php',
    1 => '安装',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/yar/setup.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="yar.requirements" class="section">
  <h2 class="title">需求</h2>
  <p class="simpara">
   HTTP 和 HTTPS 传输方式需要 cURL 库。TCP
   传输方式使用普通的 socket 实现，不需要额外的库。
  </p>
  <p class="simpara">
   需要 <a href="book.json.php" class="link">JSON</a> 扩展，
   该扩展自 PHP 8.0.0 起随 PHP 捆绑，始终可用。
  </p>
  <p class="simpara">
   若要使用 <code class="literal">msgpack</code> 打包器，必须安装
   <a href="https://pecl.php.net/package/msgpack" class="link external">&raquo;&nbsp;msgpack</a> 扩展，
   并且在编译 Yar 时使用
   <strong class="option configure">--enable-msgpack</strong> configure 选项。
  </p>
 </div><?php manual_footer($setup); ?>