<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/migration56.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'migration56.deprecated.php',
    1 => 'Missbilligte Features in PHP 5.6.x',
    2 => 'Missbilligte Features in PHP 5.6.x',
  ),
  'up' => 
  array (
    0 => 'migration56.php',
    1 => 'Migration von PHP 5.5.x auf PHP 5.6.x',
  ),
  'prev' => 
  array (
    0 => 'migration56.new-features.php',
    1 => 'Neue Features',
  ),
  'next' => 
  array (
    0 => 'migration56.changed-functions.php',
    1 => 'Ge&auml;nderte Funktionen',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'appendices/migration56/deprecated.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="migration56.deprecated" class="sect1">
 <h2 class="title">Missbilligte Features in PHP 5.6.x</h2>

 <div class="sect2" id="migration56.deprecated.incompatible-context">
  <h3 class="title">Aufrufe aus inkompatiblem Kontext</h3>
  <p class="para">
   Methodenaufrufe aus inkompatiblem Kontext sind nun missbilligt, und rufen
   einen Fehler der Stufe <strong><code><a href="errorfunc.constants.php#constant.e-deprecated">E_DEPRECATED</a></code></strong> hervor anstelle
   von <strong><code><a href="errorfunc.constants.php#constant.e-strict">E_STRICT</a></code></strong>. Die Unterstützung für derartige Aufrufe
   wird in einer zukünftigen Version von PHP entfernt.
  </p>
  <p class="para">
   Ein Beispiel für einen derartigen Aufruf:
  </p>
  <div class="informalexample">
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">class </span><span style="color: #0000BB">A </span><span style="color: #007700">{<br />    function </span><span style="color: #0000BB">f</span><span style="color: #007700">() { echo </span><span style="color: #0000BB">get_class</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">); }<br />}<br /><br />class </span><span style="color: #0000BB">B </span><span style="color: #007700">{<br />    function </span><span style="color: #0000BB">f</span><span style="color: #007700">() { </span><span style="color: #0000BB">A</span><span style="color: #007700">::</span><span style="color: #0000BB">f</span><span style="color: #007700">(); }<br />}<br /><br />(new </span><span style="color: #0000BB">B</span><span style="color: #007700">)-&gt;</span><span style="color: #0000BB">f</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <p class="para">Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p>
   <div class="example-contents screen">
<div class="cdata"><pre>
Deprecated: Non-static method A::f() should not be called statically, assuming $this from incompatible context in - on line 7
B
</pre></div>
   </div>
  </div>
 </div>

 <div class="sect2" id="migration56.deprecated.raw-post-data">
  <h3 class="title"><var class="varname">$HTTP_RAW_POST_DATA</var> und <code class="literal">always_populate_raw_post_data</code></h3>
  <p class="para">
   <code class="literal">always_populate_raw_post_data</code> ruft nun einen Fehler der
   Stufe <strong><code><a href="errorfunc.constants.php#constant.e-deprecated">E_DEPRECATED</a></code></strong> hervor, wenn
   <var class="varname">$HTTP_RAW_POST_DATA</var> befüllt wird. Neuer Code sollte
   <a href="wrappers.php.php#wrappers.php.input" class="link"><code class="literal">php://input</code></a>
   anstelle von <var class="varname">$HTTP_RAW_POST_DATA</var> verwenden, welches in
   einer zukünftigen Version entfernt wird. Es kann bereits jetzt das neue
   Verhalten (bei dem <var class="varname">$HTTP_RAW_POST_DATA</var> nie befüllt und
   damit kein <strong><code><a href="errorfunc.constants.php#constant.e-deprecated">E_DEPRECATED</a></code></strong>-Fehler hervorgerufen wird)
   verwendet werden, wenn <code class="literal">always_populate_raw_post_data</code> auf
   <code class="literal">-1</code> gestellt wird.
  </p>
 </div>

 <div class="sect2" id="migration56.deprecated.iconv-mbstring-encoding">
  <h3 class="title">Einstellungen zur Zeichenkodierung von <a href="book.iconv.php" class="link">iconv</a> und <a href="book.mbstring.php" class="link">mbstring</a></h3>
  <p class="para">
   Die Konfigurationseinstellungen für die Zeichenkodierung der Funktionen
   <a href="book.iconv.php" class="link">iconv</a> und <a href="book.mbstring.php" class="link">mbstring</a> werden nun zugunsten von <a href="ini.core.php#ini.default-charset" class="link"><code class="parameter">default_charset</code></a>
   als missbilligt eingestuft. Die missbilligten Optionen sind:
  </p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <a href="iconv.configuration.php#ini.iconv.input-encoding" class="link"><code class="parameter">iconv.input_encoding</code></a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="iconv.configuration.php#ini.iconv.output-encoding" class="link"><code class="parameter">iconv.output_encoding</code></a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="iconv.configuration.php#ini.iconv.internal-encoding" class="link"><code class="parameter">iconv.internal_encoding</code></a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="mbstring.configuration.php#ini.mbstring.http-input" class="link"><code class="parameter">mbstring.http_input</code></a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="mbstring.configuration.php#ini.mbstring.http-output" class="link"><code class="parameter">mbstring.http_output</code></a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="mbstring.configuration.php#ini.mbstring.internal-encoding" class="link"><code class="parameter">mbstring.internal_encoding</code></a>
    </span>
   </li>
  </ul>
 </div>
</div><?php manual_footer($setup); ?>