<?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 => 'de',
  ),
  'this' => 
  array (
    0 => 'migration74.other-changes.php',
    1 => 'Sonstige &Auml;nderungen',
    2 => 'Sonstige &Auml;nderungen',
  ),
  'up' => 
  array (
    0 => 'migration74.php',
    1 => 'Migration von PHP 7.3.x auf PHP 7.4.x',
  ),
  'prev' => 
  array (
    0 => 'migration74.removed-extensions.php',
    1 => 'Entfernte Erweiterungen',
  ),
  'next' => 
  array (
    0 => 'migration74.windows-support.php',
    1 => 'Windows-Unterst&uuml;tzung',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'appendices/migration74/other-changes.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="migration74.other-changes" class="sect1">
 <h2 class="title">Sonstige Änderungen</h2>

 <div class="sect2" id="migration74.other-changes.performance">
  <h3 class="title">Verbesserung der Leistung</h3>

  <div class="sect3" id="migration74.other-changes.performance.core">
   <h4 class="title">PHP-Kern</h4>
   <p class="para">
    Für die Funktion <span class="function"><a href="function.array-key-exists.php" class="function">array_key_exists()</a></span> wurde ein
    spezieller VM-Opcode hinzugefügt, der die Leistung dieser Funktion
    verbessert, wenn der Parameterwert statisch aufgelöst werden kann. In
    Code, der Namensräume verwendet, kann es notwendig sein, einen absoluten
    Namen zu verwenden (<code class="literal">\array_key_exists()</code>) oder die
    Funktion explizit zu importieren.
   </p>
  </div>

  <div class="sect3" id="migration74.other-changes.performance.pcre">
   <h4 class="title">Reguläre Ausdrücke (Perl-kompatibel)</h4>
   <p class="para">
    Wenn die Funktion <span class="function"><a href="function.preg-match.php" class="function">preg_match()</a></span> im UTF-8 Modus
    (Modifikator <code class="literal">&quot;u&quot;</code>) mehrmals für dieselbe Zeichenkette
    aufgerufen wird (aber möglicherweise mit unterschiedlichen Offsets), wird
    sie nur einmal auf valides UTF-8 geprüft.
   </p>
  </div>
 </div>

 <div class="sect2" id="migration74.other-changes.ini">
  <h3 class="title">Änderungen bei der Handhabung von INI-Dateien</h3>
  <p class="para">
   <a href="ini.core.php#ini.zend.exception-ignore-args" class="link">zend.exception_ignore_args</a>
   ist eine neue INI-Direktive, um Parameter in die von Ausnahmen erzeugten
   Stacktraces einzubeziehen oder davon auszuschließen.
  </p>
  <p class="para">
   <a href="opcache.configuration.php#ini.opcache.preload-user" class="link">opcache.preload_user</a> ist
   eine neue INI-Direktive, um das Benutzerkonto anzugeben, unter dem der
   vorab geladene Code ausgeführt wird, wenn er sonst unter root laufen würde
   (was aus Sicherheitsgründen nicht erlaubt ist).
  </p>
 </div>

 <div class="sect2" id="migration74.other-changes.pkg-config">
  <h3 class="title">Umstellung auf pkg-config</h3>
  <p class="para">
   Eine Reihe von Erweiterungen wurde dahingehend umgestellt, dass sie
   für die Erkennung von Bibliotheksabhängigkeiten ausschließlich pkg-config
   verwenden. Im Allgemeinen bedeutet dies, dass statt
   <strong class="option configure">--with-foo-dir=DIR</strong> oder ähnlich nur
   <strong class="option configure">--with-foo</strong> verwendet wird.
   Benutzerdefinierte Bibliothekspfade können entweder angegeben werden, imdem
   zusätzliche Verzeichnisse zu <code class="literal">PKG_CONFIG_PATH</code> hinzugefügt
   werden, oder durch Angabe expliziter Kompilierungsoptionen mittels
   <code class="literal">FOO_CFLAGS</code> und <code class="literal">FOO_LIBS</code>.
  </p>
  <p class="para">
   Die folgenden Erweiterungen und SAPIs sind betroffen:
  </p>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">CURL:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-curl</strong> akzeptiert kein
       Verzeichnis mehr.
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">Enchant:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-enchant</strong> akzeptiert kein
       Verzeichnis mehr.
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">FPM:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-fpm-systemd</strong> verwendet nur noch
       pkg-config für libsystemd-Überprüfungen. Die erforderliche
       Mindestversion von libsystemd ist 209.
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">GD:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-gd</strong> wurde zu
       <strong class="option configure">--enable-gd</strong>
       (ob das Modul aktiviert werden soll oder nicht) und
       <strong class="option configure">--with-external-gd</strong>
       (um eine externe libgd zu verwenden, anstatt der mitgelieferten).
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-png-dir</strong> wurde entfernt. libpng
       wird nun zwingend vorausgesetzt.
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-zlib-dir</strong> wurde entfernt. zlib
       wird nun zwingend vorausgesetzt.
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-freetype-dir</strong> wurde zu
       <strong class="option configure">--with-freetype</strong>
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-jpeg-dir</strong> wurde zu
       <strong class="option configure">--with-jpeg</strong>
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-webp-dir</strong> wurde zu
       <strong class="option configure">--with-webp</strong>
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-xpm-dir</strong> wurde zu
       <strong class="option configure">--with-xpm</strong>
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">IMAP:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-kerberos-systemd</strong> akzeptiert
       kein Verzeichnis mehr.
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">Intl:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-icu-dir</strong> wurde entfernt.
       Falls <strong class="option configure">--enable-intl</strong> übegeben wird,
       dann wird libicu immer zwingend vorausgesetzt.
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">LDAP:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-ldap-sasl</strong> akzeptiert kein
       Verzeichnis mehr.
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">Libxml:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-libxml-dir</strong> wurde entfernt.
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--enable-libxml</strong> wurde zu
       <strong class="option configure">--with-libxml</strong>.
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-libexpat-dir</strong> wurde umbenannt
       in <strong class="option configure">--with-expat</strong> und akzeptiert kein
       Verzeichnis mehr.
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">Litespeed:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-litespeed</strong> wurde zu
       <strong class="option configure">--enable-litespeed</strong>.
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">Mbstring:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-onig</strong> wurde entfernt.
       Sofern <strong class="option configure">--disable-mbregex</strong> nicht
       übergeben wurde, ist libonig zwingend erforderlich.
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">ODBC:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-iodbc</strong> akzeptiert kein
       Verzeichnis mehr.
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-unixODBC</strong> ohne Verzeichnis
       verwendet nun pkg-config (bevorzugt). Das Verzeichnis wird bei älteren
       Versionen ohne libodbc.pc immer noch akzeptiert.
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">OpenSSL:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-openssl</strong> akzeptiert kein
       Verzeichnis mehr.
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">PCRE:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-pcre-regex</strong> wurde entfernt.
       Dafür steht <strong class="option configure">--with-external-pcre</strong>
       zur Verfügung, um statt der mitgelieferten PCRE-Bibliothek eine externe
       zu verwenden
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">PDO_SQLite:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-pdo-sqlite</strong> akzeptiert kein
       Verzeichnis mehr.
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">Readline:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-libedit</strong> akzeptiert kein
       Verzeichnis mehr.
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">Sodium:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-sodium</strong> akzeptiert kein
       Verzeichnis mehr.
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">SQLite3:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-sqlite3</strong> akzeptiert kein
       Verzeichnis mehr.
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">XSL:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-xsl</strong> akzeptiert kein
       Verzeichnis mehr.
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">Zip:</span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--with-libzip</strong> wurde entfernt.
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong class="option configure">--enable-zip</strong> wurde zu
       <strong class="option configure">--with-zip</strong>.
      </span>
     </li>
    </ul>
   </li>

  </ul>
 </div>

 <div class="sect2" id="migration74.other-changes.csv">
  <h3 class="title">Maskieren von CSV</h3>
  <p class="para">
   <span class="function"><a href="function.fputcsv.php" class="function">fputcsv()</a></span>, <span class="function"><a href="function.fgetcsv.php" class="function">fgetcsv()</a></span>,
   <span class="methodname"><a href="splfileobject.fputcsv.php" class="methodname">SplFileObject::fputcsv()</a></span>,
   <span class="methodname"><a href="splfileobject.fgetcsv.php" class="methodname">SplFileObject::fgetcsv()</a></span> und
   <span class="methodname"><a href="splfileobject.setcsvcontrol.php" class="methodname">SplFileObject::setCsvControl()</a></span> akzeptieren nun
   eine leere Zeichenkette als <code class="literal">$escape</code>-Parameter, wodurch
   der proprietäre PHP-Mechanismus für die Maskierung deaktiviert wird.
  </p>
  <p class="para">
   Das Verhalten der Funktion <span class="function"><a href="function.str-getcsv.php" class="function">str_getcsv()</a></span> wurde
   entsprechend angepasst (bisher war eine leere Zeichenkette gleichbedeutend
   mit der Verwendung der Standardeinstellung).
  </p>
  <p class="para">
   Die Methode <span class="methodname"><a href="splfileobject.getcsvcontrol.php" class="methodname">SplFileObject::getCsvControl()</a></span> kann
   dementsprechend für das dritte Array-Element nun auch eine leere
   Zeichenkette zurückgeben.
  </p>
 </div>

 <div class="sect2" id="migration74.other-changes.filter">
  <h3 class="title">Datenfilterung</h3>
  <p class="para">
   Für die Erweiterung <a href="book.filter.php" class="link">filter</a> steht die
   Option <strong class="option configure">--with-pcre-dir</strong> für Unix-Builds
   nicht mehr zur Verfügung; sie kann nun problemlos mit
   <strong class="command">./configure</strong> als Shared gebaut werden.
  </p>
 </div>

 <div class="sect2" id="migration74.other-changes.gd">
  <h3 class="title">GD</h3>
  <p class="para">
   Das Verhalten der Funktion <span class="function"><a href="function.imagecropauto.php" class="function">imagecropauto()</a></span> in der
   mitgelieferten libgd-Bibliothek wurde mit dem der libgd des Systems
   synchronisiert:
  </p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code><a href="image.constants.php#constant.img-crop-default">IMG_CROP_DEFAULT</a></code></strong> greift nicht mehr auf
     <strong><code><a href="image.constants.php#constant.img-crop-sides">IMG_CROP_SIDES</a></code></strong> zurück.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Der Schwellenwert für das Cropping verwendet nun den Algorithmus der
     System-libgd.
    </span>
   </li>
  </ul>
  <p class="para">
   Bei der Funktion <span class="function"><a href="function.imagecropauto.php" class="function">imagecropauto()</a></span> wurde der
   Standardparameter von <code class="literal">$mode</code> geändert auf
   <strong><code><a href="image.constants.php#constant.img-crop-default">IMG_CROP_DEFAULT</a></code></strong>; die Übergabe von
   <code class="literal">-1</code> ist veraltet.
  </p>
  <p class="para">
   Die Funktion <span class="function"><a href="function.imagescale.php" class="function">imagescale()</a></span> unterstützt nun die
   Beibehaltung des Seitenverhältnisses, wenn auf eine feste Höhe skaliert
   wird, indem <code class="literal">-1</code> als <code class="literal">$new_width</code>
   übergeben wird.
  </p>
 </div>

 <div class="sect2" id="migration74.other-changes.hash">
  <h3 class="title">HASH Message Digest Framework</h3>
  <p class="para">
   Die Erweiterung <a href="book.hash.php" class="link">hash</a> kann nicht mehr
   deaktiviert werden und ist, ähnlich wie die Erweiterung
   <a href="book.datetime.php" class="link">date</a>, immer ein integraler Bestandteil
   eines jeden PHP-Builds.
  </p>
 </div>

 <div class="sect2" id="migration74.other-changes.intl">
  <h3 class="title">Intl</h3>
  <p class="para">
   Die Erweiterung <a href="book.intl.php" class="link">intl</a> benötigt nun
   mindestens ICU 50.1.
  </p>
  <p class="para">
   Die Klasse <span class="classname"><a href="class.resourcebundle.php" class="classname">ResourceBundle</a></span> implementiert nun
   <span class="interfacename"><a href="class.countable.php" class="interfacename">Countable</a></span>.
  </p>
 </div>

 <div class="sect2" id="migration74.other-changes.ldap">
  <h3 class="title">Lightweight Directory Access Protocol (LDAP)</h3>
  <p class="para">
   Die Unterstützung für nsldap und umich_ldap wurde entfernt.
  </p>
 </div>

 <div class="sect2" id="migration74.other-changes.libxml">
  <h3 class="title">Libxml</h3>
  <p class="para">
   Alle libxml-basierten Erweiterungen benötigen nun mindestens libxml 2.7.6.
  </p>
 </div>

 <div class="sect2" id="migration74.other-changes.mbstring">
  <h3 class="title">Multibyte-Zeichenketten</h3>
  <p class="para">
   Die Bibliothek oniguruma wird nicht mehr in PHP mitgeliefert, stattdessen
   muss libonig auf dem System verfügbar sein. Alternativ dazu kann die Option
   <strong class="option configure">--disable-mbregex</strong> verwendet werden, um
   die Komponente mbregex zu deaktivieren.
  </p>
 </div>

 <div class="sect2" id="migration74.other-changes.opcache">
  <h3 class="title">OPcache</h3>
  <p class="para">
   Die Konfigurationsoptionen
   <strong class="option configure">--disable-opcache-file</strong> und
   <strong class="option configure">--enable-opcache-file</strong>
   wurden zugunsten der INI-Direktive
   <a href="opcache.configuration.php#ini.opcache.file-cache" class="link">opcache.file_cache</a> entfernt.
  </p>
 </div>

 <div class="sect2" id="migration74.other-changes.password">
  <h3 class="title">Passwort-Hashing</h3>
  <p class="para">
   Die Funktionen <span class="function"><a href="function.password-hash.php" class="function">password_hash()</a></span> und
   <span class="function"><a href="function.password-needs-rehash.php" class="function">password_needs_rehash()</a></span> akzeptieren beim Parameter
   <code class="literal">$algo</code> nun nullbare <a href="language.types.string.php" class="link">String</a> und <a href="language.types.integer.php" class="link">Integer</a>.
  </p>
 </div>

 <div class="sect2" id="migration74.other-changes.pear">
  <h3 class="title">PEAR</h3>
  <p class="para">
   Die Installation von PEAR (einschließlich PECL) ist nicht mehr
   standardmäßig aktiviert. Sie kann explizit mit der Option
   <strong class="option configure">--with-pear</strong> aktiviert werden. Diese
   Option ist veraltet und wird möglicherweise in Zukunft entfernt.
  </p>
 </div>

 <div class="sect2" id="migration74.other-changes.reflection">
  <h3 class="title">Reflection</h3>
  <p class="para">
   Bei den Klassen
   <span class="classname"><a href="class.reflectionclass.php" class="classname">ReflectionClass</a></span>,
   <span class="classname"><a href="class.reflectionfunction.php" class="classname">ReflectionFunction</a></span>,
   <span class="classname"><a href="class.reflectionmethod.php" class="classname">ReflectionMethod</a></span>,
   <span class="classname"><a href="class.reflectionobject.php" class="classname">ReflectionObject</a></span> und
   <span class="classname"><a href="class.reflectionproperty.php" class="classname">ReflectionProperty</a></span>
   haben sich die numerischen Werte der Modifizierungskonstanten
   (<code class="literal">IS_ABSTRACT</code>,
   <code class="literal">IS_DEPRECATED</code>,
   <code class="literal">IS_EXPLICIT_ABSTRACT</code>,
   <code class="literal">IS_FINAL</code>,
   <code class="literal">IS_IMPLICIT_ABSTRACT</code>,
   <code class="literal">IS_PRIVATE</code>,
   <code class="literal">IS_PROTECTED</code>,
   <code class="literal">IS_PUBLIC</code> und
   <code class="literal">IS_STATIC</code>) geändert.
  </p>
 </div>

 <div class="sect2" id="migration74.other-changes.simplexml">
  <h3 class="title">SimpleXML</h3>
  <p class="para">
   Die Klasse <span class="classname"><a href="class.simplexmlelement.php" class="classname">SimpleXMLElement</a></span> implementiert nun
   <span class="interfacename"><a href="class.countable.php" class="interfacename">Countable</a></span>.
  </p>
 </div>

 <div class="sect2" id="migration74.other-changes.sqlite3">
  <h3 class="title">SQLite3</h3>
  <p class="para">
   Die mitgelieferte Bibliothek libsqlite wurde entfernt. Um die Erweiterung
   <a href="book.sqlite3.php" class="link">SQLite3</a> zu erstellen, wird nun
   libsqlite3 ≥ 3.7.4 benötigt. Um die Erweiterung
   <a href="ref.pdo-sqlite.php" class="link">PDO_SQLite</a> zu erstellen,
   wird nun libsqlite3 ≥ 3.5.0 benötigt.
  </p>
  <p class="para">
   Es ist nun ausdrücklich verboten, <span class="classname"><a href="class.sqlite3.php" class="classname">SQLite3</a></span>,
   <span class="classname"><a href="class.sqlite3stmt.php" class="classname">SQLite3Stmt</a></span> und <span class="classname"><a href="class.sqlite3result.php" class="classname">SQLite3Result</a></span>
   zu serialisieren und zu deserialisieren. Zuvor war es zwar möglich, die
   Instanzen dieser Klassen zu serialisieren, aber die Deserialisierung führte
   zu unbrauchbaren Objekten.
  </p>
  <p class="para">
   Die Notation <code class="literal">@param</code> kann nun auch verwendet werden, um
   SQL-Abfrageparameter anzugeben.
  </p>
 </div>

 <div class="sect2" id="migration74.other-changes.zip">
  <h3 class="title">Zip</h3>
  <p class="para">
   Die mitgelieferte Bibliothek libzip wurde entfernt. Um die Erweiterung
   <a href="book.zip.php" class="link">zip</a> zu erstellen, wird nun libzip &gt;= 0.11
   benötigt.
  </p>
 </div>

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