<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/migration83.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'migration83.deprecated.php',
    1 => '弃用功能',
    2 => '弃用功能',
  ),
  'up' => 
  array (
    0 => 'migration83.php',
    1 => '从 PHP 8.2.x 移植到 PHP 8.3.x',
  ),
  'prev' => 
  array (
    0 => 'migration83.incompatible.php',
    1 => '不向后兼容的变更',
  ),
  'next' => 
  array (
    0 => 'migration83.other-changes.php',
    1 => '其它变更',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'appendices/migration83/deprecated.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="migration83.deprecated" class="sect1">
 <h2 class="title">弃用功能</h2>

 <div class="sect2" id="migration83.deprecated.core">
  <h3 class="title">PHP 核心</h3>

  <div class="sect3" id="migration83.deprecated.core.saner-inc-dec-operators">
   <h4 class="title">更健全的自增/自减运算符</h4>

   <p class="para">
    现在已弃用在空、非数字和非字母数字字符串使用<a href="language.operators.increment.php" class="link">自增</a>运算符（<code class="literal">++</code>）。此外，自增非数字字符串是软弃用。这意味着不会发出
    <strong><code><a href="errorfunc.constants.php#constant.e-deprecated">E_DEPRECATED</a></code></strong> 诊断，但编写新代码时不应使用此功能。应该使用新的 <span class="function"><a href="function.str-increment.php" class="function">str_increment()</a></span> 函数。
   </p>

   <p class="para">
    现在已对空字符串或非数字字符串使用<a href="language.operators.increment.php" class="link">自减</a>运算符（<code class="literal">--</code>）。
   </p>
   
  </div>

  <div class="sect3" id="migration83.deprecated.core.get-class">
   <h4 class="title">不带参数调用 get_class()/get_parent_class()</h4>

   <p class="para">
    现在已弃用不带参数调用 <span class="function"><a href="function.get-class.php" class="function">get_class()</a></span> 和 <span class="function"><a href="function.get-parent-class.php" class="function">get_parent_class()</a></span>。
   </p>
  </div>
 </div>

 <div class="sect2" id="migration83.deprecated.core.dba">
  <h3 class="title">DBA</h3>

  <p class="para">
   现在已弃用将 <code class="parameter">$dba</code> 作为第三个参数调用 <span class="function"><a href="function.dba-fetch.php" class="function">dba_fetch()</a></span>。
  </p>
 </div>

 <div class="sect2" id="migration83.deprecated.ffi">
  <h3 class="title">FFI</h3>

  <p class="para">
   现在已弃用静态调用 <span class="methodname"><a href="ffi.cast.php" class="methodname">FFI::cast()</a></span>、<span class="methodname"><a href="ffi.new.php" class="methodname">FFI::new()</a></span>
   和 <span class="methodname"><a href="ffi.type.php" class="methodname">FFI::type()</a></span>。
  </p>
 </div>

 <div class="sect2" id="migration83.deprecated.intl">
  <h3 class="title">Intl</h3>

  <p class="para">
   已弃用 <strong><code>U_MULTIPLE_DECIMAL_SEP*E*RATORS</code></strong> 常量，推荐使用
   <strong><code>U_MULTIPLE_DECIMAL_SEP*A*RATORS</code></strong> 常量替代。
  </p>
  <p class="para">
   已弃用 <strong><code><a href="class.numberformatter.php#numberformatter.constants.type-currency">NumberFormatter::TYPE_CURRENCY</a></code></strong> 常量。
  </p>
 </div>

 <div class="sect2" id="migration83.deprecated.ldap">
  <h3 class="title">LDAP</h3>

  <p class="para">
   已弃用使用单独的 <code class="parameter">$hostname</code> 和 <code class="parameter">$port</code> 调用 <span class="function"><a href="function.ldap-connect.php" class="function">ldap_connect()</a></span>。
   
  </p>
 </div>

 <div class="sect2" id="migration83.deprecated.mbstring">
  <h3 class="title">MBString</h3>

  <p class="para">
   已弃用传递负 <code class="parameter">$width</code> 给
   <span class="function"><a href="function.mb-strimwidth.php" class="function">mb_strimwidth()</a></span>。
  </p>
 </div>

 <div class="sect2" id="migration83.deprecated.phar">
  <h3 class="title">Phar</h3>

  <p class="para">
   现在已弃用使用 <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> 和 <code class="parameter">$length</code>
   调用 <span class="methodname"><a href="phar.setstub.php" class="methodname">Phar::setStub()</a></span>。这样的调用应该替换为 <code class="code">$phar-&gt;setStub(stream_get_contents($resource));</code>
  </p>
 </div>

 <div class="sect2" id="migration83.deprecated.random">
  <h3 class="title">Random</h3>

  <p class="para">
   <strong><code><a href="random.constants.php#constant.mt-rand-php">MT_RAND_PHP</a></code></strong> Mt19937 变种已弃用。
   
  </p>
 </div>

 <div class="sect2" id="migration83.deprecated.reflection">
  <h3 class="title">反射</h3>

  <p class="para">
   已弃用仅使用一个参数调用 <span class="methodname"><a href="reflectionproperty.setvalue.php" class="methodname">ReflectionProperty::setValue()</a></span>。要设置静态属性，要将第一个参数设置为 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>。
  </p>
 </div>

 <div class="sect2" id="migration83.deprecated.standard">
  <h3 class="title">标准</h3>

  <p class="para">
   现在已弃用 <span class="function"><a href="function.assert-options.php" class="function">assert_options()</a></span> 函数。
  </p>
  <p class="para">
   已弃用 <strong><code><a href="info.constants.php#constant.assert-active">ASSERT_ACTIVE</a></code></strong>、<strong><code><a href="info.constants.php#constant.assert-bail">ASSERT_BAIL</a></code></strong>、<strong><code><a href="info.constants.php#constant.assert-callback">ASSERT_CALLBACK</a></code></strong>、<strong><code><a href="info.constants.php#constant.assert-exception">ASSERT_EXCEPTION</a></code></strong>
   和 <strong><code><a href="info.constants.php#constant.assert-warning">ASSERT_WARNING</a></code></strong> 常量。
  </p>

  <p class="para">
   已弃用 <code class="literal">assert.*</code> INI 设置。参阅
   <a href="migration83.other-changes.php#migration83.other-changes.ini" class="link">INI 文件处理的变更</a>页面获取更多信息。
  </p>
  
 </div>

 <div class="sect2" id="migration83.deprecated.sqlite3">
  <h3 class="title">SQLite3</h3>

  <p class="para">
   现在首选使用异常，警告将在未来移除。调用 <code class="code">SQLite3::enableExceptions(false)</code>
   将在此版本触发一个弃用警告。
  </p>
 </div>

 <div class="sect2" id="migration83.deprecated.zip">
  <h3 class="title">Zip</h3>

  <p class="para">
   已弃用 <strong><code><a href="zip.constants.php#ziparchive.constants.fl-recompress">ZipArchive::FL_RECOMPRESS</a></code></strong> 常量，并将在 libzip
   的未来版本中移除。
  </p>
 </div>

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