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

contributors($setup);

?>
<div id="migration70.deprecated" class="sect1">
 <h2 class="title">Veraltete Features in PHP 7.0.x</h2>




 <div class="sect2" id="migration70.deprecated.php4-constructors">
  <h3 class="title">Konstruktoren im Stil von PHP 4</h3>

  <p class="para">
   Konstruktoren im Stil von PHP 4 (Methoden, die den gleichen Namen haben wie
   die Klasse, in der sie definiert sind) sind veraltet und werden in Zukunft
   entfernt. Wenn in einer Klasse nur dieser Typ von Konstruktor definiert
   ist, löst PHP 7 ein <strong><code><a href="errorfunc.constants.php#constant.e-deprecated">E_DEPRECATED</a></code></strong> aus. Klassen, die die
   Methode <span class="function"><strong>__construct()</strong></span> implementieren, sind davon nicht
   betroffen.
  </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">foo </span><span style="color: #007700">{<br />    function </span><span style="color: #0000BB">foo</span><span style="color: #007700">() {<br />        echo </span><span style="color: #DD0000">'Ich bin der Konstruktor'</span><span style="color: #007700">;<br />    }<br />}<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: Methods with the same name as their class will not be constructors in a future version of PHP; foo has a deprecated constructor in example.php on line 3
</pre></div>
   </div>
  </div>
 </div>

 <div class="sect2" id="migration70.deprecated.static-calls">
  <h3 class="title">Statische Aufrufe nicht-statischer Methoden</h3>

  <p class="para">
   <a href="language.oop5.static.php" class="link">Statische</a> Aufrufe von Methoden,
   die nicht als <strong class="command">static</strong> deklariert sind, sind veraltet und
   werden in der Zukunft möglicherweise entfernt.
  </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">foo </span><span style="color: #007700">{<br />    function </span><span style="color: #0000BB">bar</span><span style="color: #007700">() {<br />        echo </span><span style="color: #DD0000">'Ich bin nicht statisch!'</span><span style="color: #007700">;<br />    }<br />}<br /><br /></span><span style="color: #0000BB">foo</span><span style="color: #007700">::</span><span style="color: #0000BB">bar</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 foo::bar() should not be called statically in - on line 8
Ich bin nicht statisch!
</pre></div>
   </div>
  </div>
 </div>

 <div class="sect2" id="migration70.deprecated.pwshash-salt-option">
  <h3 class="title">Die Option salt von <span class="function"><a href="function.password-hash.php" class="function">password_hash()</a></span></h3>

  <p class="para">
   Bei der Funktion <span class="function"><a href="function.password-hash.php" class="function">password_hash()</a></span> ist die Option salt
   veraltet, um Entwickler daran zu hindern, ihr eigenes (normalerweise
   unsicheres) salt zu erzeugen. Wenn kein eigenes salt angegeben wird,
   generiert die Funktion selbst ein kryptographisch sicheres salt. Es ist
   daher nicht mehr nötig, selbst ein salt zu erzeugen.
  </p>
 </div>

 <div class="sect2" id="migration70.deprecated.capture-session-meta">
  <h3 class="title">Die SSL-Kontextoption <code class="literal">capture_session_meta</code></h3>

  <p class="para">
   Die SSL-Kontextoption <code class="literal">capture_session_meta</code> ist veraltet.
   SSL-Metadaten sind nun über die Funktion
   <span class="function"><a href="function.stream-get-meta-data.php" class="function">stream_get_meta_data()</a></span> verfügbar.
  </p>
 </div>

 <div class="sect2" id="migration70.deprecated.ldap">
  <h3 class="title"><a href="book.ldap.php" class="link">LDAP</a></h3>
   <p class="simpara">
    Die folgende Funktion ist veraltet:
   </p>

   <ul class="itemizedlist">
    <li class="listitem">
     <span class="simpara">
      <span class="function"><a href="function.ldap-sort.php" class="function">ldap_sort()</a></span>
     </span>
    </li>
   </ul>
 </div>
</div><?php manual_footer($setup); ?>