<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/migration82.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'migration82.deprecated.php',
    1 => 'Deprecated Features',
    2 => 'Deprecated Features',
  ),
  'up' => 
  array (
    0 => 'migration82.php',
    1 => 'Migrating from PHP 8.1.x to PHP 8.2.x',
  ),
  'prev' => 
  array (
    0 => 'migration82.incompatible.php',
    1 => 'Backward Incompatible Changes',
  ),
  'next' => 
  array (
    0 => 'migration82.other-changes.php',
    1 => 'Other Changes',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'appendices/migration82/deprecated.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="migration82.deprecated" class="sect1">
 <h2 class="title">Deprecated Features</h2>

 <div class="sect2" id="migration82.deprecated.core">
  <h3 class="title">PHP Core</h3>

  <div class="sect3" id="migration82.deprecated.core.dynamic-properties">
   <h4 class="title">Usage of dynamic properties</h4>

   <p class="para">
    The creation of dynamic properties is deprecated, unless the class opts in by
    using the <code class="code">#[\AllowDynamicProperties]</code> attribute.
    <span class="classname"><a href="class.stdclass.php" class="classname">stdClass</a></span> allows dynamic properties.
    Usage of the <a href="language.oop5.overloading.php#object.get" class="link">__get()</a>/<a href="language.oop5.overloading.php#object.set" class="link">__set()</a> magic methods is not affected by this change.
    A dynamic properties deprecation warning can be addressed by:

    <ul class="simplelist">
     <li>Declaring the property (preferred).</li>
     <li>
      Adding the <code class="code">#[\AllowDynamicProperties]</code> attribute to the class
      (which also applies to all child classes).
     </li>
     <li>
      Using a <span class="classname"><a href="class.weakmap.php" class="classname">WeakMap</a></span> if additional data needs to be
      associated with an object which one does not own.
     </li>
    </ul>
   </p>
  </div>

  <div class="sect3" id="migration82.deprecated.core.relative-callables">
   <h4 class="title">Relative callables</h4>

   <p class="para">
    Callables that are not accepted by the <code class="code">$callable()</code> syntax
    (but are accepted by <span class="function"><a href="function.call-user-func.php" class="function">call_user_func()</a></span>) are deprecated.

    In particular:
    <ul class="simplelist">
     <li><code class="code">&quot;self::method&quot;</code></li>
     <li><code class="code">&quot;parent::method&quot;</code></li>
     <li><code class="code">&quot;static::method&quot;</code></li>
     <li><code class="code">[&quot;self&quot;, &quot;method&quot;]</code></li>
     <li><code class="code">[&quot;parent&quot;, &quot;method&quot;]</code></li>
     <li><code class="code">[&quot;static&quot;, &quot;method&quot;]</code></li>
     <li><code class="code">[&quot;Foo&quot;, &quot;Bar::method&quot;]</code></li>
     <li><code class="code">[new Foo, &quot;Bar::method&quot;]</code></li>
    </ul>

    This does not affect normal method callables such as
    <code class="code">&quot;A::method&quot;</code> or <code class="code">[&quot;A&quot;, &quot;method&quot;]</code>.
   </p>
   
   
  </div>

  <div class="sect3" id="migration82.deprecated.core.dollar-brace-interpolation">
   <h4 class="title"><code class="code">&quot;${var}&quot;</code> and <code class="code">&quot;${expr}&quot;</code> style interpolation</h4>

   <p class="para">
    The <code class="code">&quot;${var}&quot;</code> and <code class="code">&quot;${expr}&quot;</code> style of string
    interpolation is deprecated.
    Use <code class="code">&quot;$var&quot;/&quot;{$var}&quot;</code> and <code class="code">&quot;{${expr}}&quot;</code>, respectively.
    
   </p>
  </div>

 </div>

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

  <p class="para">
   Usage of the <code class="literal">QPrint</code>, <code class="literal">Base64</code>,
   <code class="literal">Uuencode</code>, and <code class="literal">HTML-ENTITIES</code>
   &#039;text encodings&#039; is deprecated for all MBString functions.

   Unlike all the other text encodings supported by MBString,
   these do not encode a sequence of Unicode codepoints, but rather a sequence of raw bytes.
   It is not clear what the correct return values for most MBString functions
   should be when one of these non-encodings is specified.
   Moreover, PHP has separate, built-in implementations of all of them;
   for example, UUencoded data can be handled using
   <span class="function"><a href="function.convert-uuencode.php" class="function">convert_uuencode()</a></span>/<span class="function"><a href="function.convert-uudecode.php" class="function">convert_uudecode()</a></span>.
  </p>
 </div>

 <div class="sect2" id="migration82.deprecated.spl">
  <h3 class="title">SPL</h3>

  <p class="para">
   The internal <span class="methodname"><strong>SplFileInfo::_bad_state_ex()</strong></span> method
   has been deprecated.
  </p>
 </div>

 <div class="sect2" id="migration82.deprecated.standard">
  <h3 class="title">Standard</h3>

  <p class="para">
   <span class="function"><a href="function.utf8-encode.php" class="function">utf8_encode()</a></span> and <span class="function"><a href="function.utf8-decode.php" class="function">utf8_decode()</a></span>
   have been deprecated.
  </p>
 </div>

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