<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/appendices.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'migration80.php',
    1 => '从 PHP 7.4.x 移植到 PHP 8.0.x',
    2 => '从 PHP 7.4.x 移植到 PHP 8.0.x',
  ),
  'up' => 
  array (
    0 => 'appendices.php',
    1 => '附录',
  ),
  'prev' => 
  array (
    0 => 'migration81.other-changes.php',
    1 => '其他变更',
  ),
  'next' => 
  array (
    0 => 'migration80.new-features.php',
    1 => '新特性',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'appendices/migration80.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/migration80.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="migration80" class="appendix">
 <h1 class="title">从 PHP 7.4.x 移植到 PHP 8.0.x</h1>
<h2>目录</h2><ul class="chunklist chunklist_appendix"><li><a href="migration80.new-features.php">新特性</a></li><li><a href="migration80.new-classes.php">新的类和接口</a></li><li><a href="migration80.incompatible.php">不向后兼容的变更</a></li><li><a href="migration80.deprecated.php">PHP 8.0 废弃的功能</a></li><li><a href="migration80.other-changes.php">其他变更</a></li></ul>


 <p class="para">
  新的主版本号带来了一些<a href="migration80.new-features.php" class="link">新特性</a>和<a href="migration80.incompatible.php" class="link">不兼容处</a>，在生产环境上切换 PHP 版本前需要做测试。
 </p>

 <p class="para">
  参见 PHP 版本迁移指南
  <a href="migration70.php" class="link">7.0.x</a>、<a href="migration71.php" class="link">7.1.x</a>、<a href="migration72.php" class="link">7.2.x</a>、<a href="migration73.php" class="link">7.3.x</a>、<a href="migration74.php" class="link">7.4.x</a>。
 </p>

 







 



 







 







 








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