<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/migration74.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'migration74.windows-support.php',
    1 => 'Windows 支持',
    2 => 'Windows 支持',
  ),
  'up' => 
  array (
    0 => 'migration74.php',
    1 => '从 PHP 7.3.x 移植到 PHP 7.4.x',
  ),
  'prev' => 
  array (
    0 => 'migration74.other-changes.php',
    1 => '其他变更',
  ),
  'next' => 
  array (
    0 => 'migration73.php',
    1 => '从 PHP 7.2.x 移植到 PHP 7.3.x',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'appendices/migration74/windows-support.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="migration74.windows-support" class="sect1">
 <h2 class="title">Windows 支持</h2>

 <div class="sect2" id="migration74.windows-support.configure">
  <h3 class="title"><strong class="command">configure</strong> flag</h3>
  <p class="para">
   <strong class="command">configure</strong> 命令现在支持 <code class="literal">CFLAGS</code> 和 <code class="literal">LDFLAGS</code> 环境变量。
  </p>
 </div>

 <div class="sect2" id="migration74.windows-support.other">
  <h3 class="title">CTRL 处理</h3>
  <p class="para">
   控制台上的 <kbd class="keycombo">
    <kbd class="keycap">CTRL</kbd>
    +<kbd class="keycap">C</kbd>
   </kbd> 和 <kbd class="keycombo">
    <kbd class="keycap">CTRL</kbd>
    +<kbd class="keycap">BREAK</kbd>
   </kbd> 可以通过 <span class="function"><a href="function.sapi-windows-set-ctrl-handler.php" class="function">sapi_windows_set_ctrl_handler()</a></span>
   设置处理函数来捕获。
  </p>
  <p class="para">
   Windows 上的 <span class="function"><a href="function.proc-open.php" class="function">proc_open()</a></span> 可以传递“create_process_group”选项。如果子进程要处理 CTRL 事件，则这是必需的。
  </p>
 </div>

 <div class="sect2" id="migration74.windows-support.opcache">
  <h3 class="title">OPcache</h3>
  <p class="para">
   OPcache 现在通过 INI 指令 <code class="literal">opcache.cache_id</code>
   支持不同用户有不限数量的单独缓存。具有相同缓存 ID 和用户的所有进程共享一个 OPcache 实例。
  </p>
 </div>

 <div class="sect2" id="migration74.windows-support.stat">
  <h3 class="title">stat</h3>
  <p class="para">
   stat 实现已经重构。
  </p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     提供 inode 编号，并且其基于 NTFS 文件索引。
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     device 编号现在基于卷序列号。
    </span>
   </li>
  </ul>
  <p class="para">
   注意，这两个值均来源于系统并且是基于 64 位系统原样提供。在 32 位系统上，这些值在 PHP 32 位整数上可能会溢出，所以它们是假的。
  </p>
 </div>

 <div class="sect2" id="migration74.windows-support.sqlite3">
  <h3 class="title">libsqlite3</h3>
  <p class="para">
   libsqlite3 不再静态编译为 <var class="filename">php_sqlite3.dll</var> 和 <var class="filename">php_pdo_sqlite.dll</var>，而是作为 <var class="filename">libsqlite3.dll</var>
   提供。依次参阅 <a href="sqlite3.installation.php" class="link">SQLite3</a> 和 <a href="ref.pdo-sqlite.php#ref.pdo-sqlite.installation" class="link">PDO_SQLITE</a> 的安装说明。
  </p>
 </div>

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