<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/migration73.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'migration73.other-changes.php',
    1 => 'Autres changements',
    2 => 'Autres changements',
  ),
  'up' => 
  array (
    0 => 'migration73.php',
    1 => 'Migration de PHP 7.2.x vers PHP 7.3.x',
  ),
  'prev' => 
  array (
    0 => 'migration73.deprecated.php',
    1 => 'Fonctionnalit&eacute;s devenues obsol&egrave;tes',
  ),
  'next' => 
  array (
    0 => 'migration73.windows-support.php',
    1 => 'Support de Windows',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'appendices/migration73/other-changes.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="migration73.other-changes" class="sect1">
 <h2 class="title">Autres changements</h2>

 <div class="sect2" id="migration73.other-changes.core">
  <h3 class="title">Cœur de PHP</h3>

  <div class="sect3" id="migration73.other-changes.core.setcookie">
   <h4 class="title">Set(raw)cookie accepte l&#039;argument $option</h4>

   <p class="para">
    <span class="function"><a href="function.setcookie.php" class="function">setcookie()</a></span> et <span class="function"><a href="function.setrawcookie.php" class="function">setrawcookie()</a></span> prennent 
    également la signature suivante :
    <div class="methodsynopsis dc-description">
     <span class="methodname"><a href="function.setcookie.php" class="methodname">setcookie</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$value</code><span class="initializer"> = &quot;&quot;</span></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$options</code><span class="initializer"> = []</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

    où <code class="literal">$options</code> est un tableau associatif qui peut avoir l&#039;une 
    des clés suivantes <code class="literal">&quot;expires&quot;</code>, <code class="literal">&quot;path&quot;</code>,
    <code class="literal">&quot;domain&quot;</code>, <code class="literal">&quot;secure&quot;</code>,
    <code class="literal">&quot;httponly&quot;</code> et <code class="literal">&quot;samesite&quot;</code>.
   </p>
  </div>

  <div class="sect3" id="migration73.other-changes.core.syslog">
   <h4 class="title">Nouvelles directives INI Syslog</h4>

   <p class="para">
    Les directives INI suivantes ont été ajoutées pour personnaliser 
    l&#039;enregistrement, si <a href="errorfunc.configuration.php#ini.error-log" class="link">error_log</a> 
    est défini sur <code class="literal">syslog</code>:
    <dl>
     
      <dt><a href="errorfunc.configuration.php#ini.syslog.facility" class="link">syslog.facility</a></dt>
      <dd>
       <span class="simpara">
        Spécifie quel type de programme enregistre le message.
       </span>
      </dd>
     
     
      <dt><a href="errorfunc.configuration.php#ini.syslog.filter" class="link">syslog.filter</a></dt>
      <dd>
       <span class="simpara">
        Spécifie le type de filtre pour filtrer les messages enregistrés,
        avec les types de filtres pris en charge - <code class="literal">all</code>,
        <code class="literal">no-ctrl</code> et <code class="literal">ascii</code>.
        À partir de PHP 7.3.8, <code class="literal">raw</code> est aussi disponible,
        restaurant le comportement de syslog correspondant aux versions
        antérieures de PHP. Ce filtre affectera aussi les appels à
        <span class="function"><a href="function.syslog.php" class="function">syslog()</a></span>.
       </span>
      </dd>
     
     
      <dt><a href="errorfunc.configuration.php#ini.syslog.ident" class="link">syslog.ident</a></dt>
      <dd>
       <span class="simpara">
        Spécifie la chaîne ident qui préfixera chaque message.
       </span>
      </dd>
     
    </dl>
   </p>
  </div>

  <div class="sect3" id="migration73.other-changes.core.gc">
   <h4 class="title">Collecteur de mémoire</h4>

   <p class="para">
    Le <a href="features.gc.collecting-cycles.php" class="link">GC cyclique</a> a été amélioré,
    ce qui améliore grandement les performances.
   </p>
  </div>

  <div class="sect3" id="migration73.other-changes.core.misc">
   <h4 class="title">Divers</h4>

   <p class="para">
    <span class="function"><a href="function.var-export.php" class="function">var_export()</a></span> exporte maintenant les objets 
    <span class="classname"><a href="class.stdclass.php" class="classname">stdClass</a></span> comme un tableau modifié en objet 
    (<code class="code">(object) array( ... )</code>), plutôt que d&#039;utiliser la méthode 
    inexistante <span class="methodname"><strong>stdClass::__setState()</strong></span>.
   </p>

   <p class="para">
    <span class="function"><a href="function.debug-zval-dump.php" class="function">debug_zval_dump()</a></span> a été modifié pour afficher les tableaux
    et les objets récursifs de la même manière que <span class="function"><a href="function.var-dump.php" class="function">var_dump()</a></span>.
    Maintenant, il ne les affiche pas deux fois.
   </p>

   <p class="para">
    <span class="function"><a href="function.array-push.php" class="function">array_push()</a></span> et <span class="function"><a href="function.array-unshift.php" class="function">array_unshift()</a></span> peuvent
    maintenant être appelés avec un seul argument, ce qui est particulièrement 
    pratique avec l&#039;opérateur de décomposition.
   </p>
  </div>

 </div>

 <div class="sect2" id="migration73.other-changes.phpdbg">
  <h3 class="title">Débogueur PHP interactif</h3>

  <p class="para">
   Les constantes inutilisées <strong><code><a href="phpdbg.constants.php#constant.phpdbg-file">PHPDBG_FILE</a></code></strong>,
   <strong><code><a href="phpdbg.constants.php#constant.phpdbg-method">PHPDBG_METHOD</a></code></strong>, <strong><code><a href="phpdbg.constants.php#constant.phpdbg-lineno">PHPDBG_LINENO</a></code></strong> et
   <strong><code><a href="phpdbg.constants.php#constant.phpdbg-func">PHPDBG_FUNC</a></code></strong> ont été supprimées.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.fpm">
  <h3 class="title">Gestionnaire de processus FastCGI</h3>

  <p class="para">
   La fonction <span class="function"><a href="function.getallheaders.php" class="function">getallheaders()</a></span> est maintenant également disponible.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.curl">
  <h3 class="title">Bibliothèque Client URL</h3>

  <p class="para">
   libcurl ≥ 7.15.5 est maintenant nécessaire.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.filter">
  <h3 class="title">Filtrage des données</h3>

  <p class="para">
   <strong><code><a href="filter.constants.php#constant.filter-validate-float">FILTER_VALIDATE_FLOAT</a></code></strong> gère maintenant l&#039;option 
   <code class="literal">thousand</code>, qui définit l&#039;ensemble de caractères de 
   séparation pour les milliers. La valeur par défaut est (<code class="code">&quot;&#039;,.&quot;</code>) 
   entièrement rétrocompatible avec les anciennes versions PHP.
  </p>

  <p class="para">
   <strong><code><a href="filter.constants.php#constant.filter-sanitize-add-slashes">FILTER_SANITIZE_ADD_SLASHES</a></code></strong> a été ajouté comme un alias 
   du filtre <code class="literal">magic_quotes</code> (<strong><code><a href="filter.constants.php#constant.filter-sanitize-magic-quotes">FILTER_SANITIZE_MAGIC_QUOTES</a></code></strong>).
   Le filtre <code class="literal">magic_quotes</code> est susceptible d&#039;être supprimé 
   dans les futures versions de PHP.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.ftp">
  <h3 class="title">FTP</h3>

  <p class="para">
   Le mode de transfert par défaut a été modifié pour <code class="literal">binary</code>.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.intl">
  <h3 class="title">Fonctions d&#039;internationalisation</h3>

  <p class="para">
   <strong><code>Normalizer::NONE</code></strong> est déprécié, lorsque PHP est lié à
   ICU ≥ 56.
  </p>

  <p class="para">
   Introduction de <strong><code><a href="class.normalizer.php#normalizer.constants.form-kc-cf">Normalizer::FORM_KC_CF</a></code></strong> en tant qu&#039;argument de
   <span class="methodname"><a href="normalizer.normalize.php" class="methodname">Normalizer::normalize()</a></span> pour la normalisation
   <code class="literal">NFKC_Casefold</code>; disponible lorsque PHP est lié à
   ICU ≥ 56.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.json">
  <h3 class="title">Notation d&#039;objets JavaScript</h3>

  <p class="para">
   Un nouveau drapeau a été ajouté, <strong><code><a href="json.constants.php#constant.json-throw-on-error">JSON_THROW_ON_ERROR</a></code></strong>,
   qui peut être utilisé avec <span class="function"><a href="function.json-decode.php" class="function">json_decode()</a></span> ou
   <span class="function"><a href="function.json-encode.php" class="function">json_encode()</a></span> et provoque la levée de la nouvelle exception 
   <span class="classname"><a href="class.jsonexception.php" class="classname">JsonException</a></span> lors d&#039;une erreur, au lieu de définir
   l&#039;état d&#039;erreur global qui est récupéré avec <span class="function"><a href="function.json-last-error.php" class="function">json_last_error()</a></span> 
   et <span class="function"><a href="function.json-last-error-msg.php" class="function">json_last_error_msg()</a></span>.
   <strong><code><a href="json.constants.php#constant.json-partial-output-on-error">JSON_PARTIAL_OUTPUT_ON_ERROR</a></code></strong> prend le pas sur
   <strong><code><a href="json.constants.php#constant.json-throw-on-error">JSON_THROW_ON_ERROR</a></code></strong>.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.mbstring">
  <h3 class="title">Chaîne multioctet</h3>

  <p class="para">
   L&#039;option de configuration <strong class="option configure">--with-libmbfl</strong> n&#039;est 
   plus disponible.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.uodbc">
  <h3 class="title">ODBC (Unifié)</h3>

  <p class="para">
   La gestion de <code class="literal">ODBCRouter</code> et <code class="literal">Birdstep</code>
   incluant la directive ini <code class="literal">birdstep.max_links</code> ont été supprimés.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.opcache">
  <h3 class="title">OPcache</h3>

  <p class="para">
   La directive ini <code class="literal">opcache.inherited_hack</code> a été supprimée.
   La valeur était ignorée à partir de PHP 5.3.0.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.openssl">
  <h3 class="title">OpenSSL</h3>

  <p class="para">
   Les options de flux ssl <code class="literal">min_proto_version</code> et 
   <code class="literal">max_proto_version</code> ainsi que des constantes liées pour 
   d&#039;éventuelles valeurs de protocole TLS ont été ajoutées.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.pcre">
  <h3 class="title">Expressions régulières (Perl-Compatible)</h3>

  <p class="para">
   L&#039;<a href="book.pcre.php" class="link">extension PCRE</a> a été mise à niveau vers PCRE2, 
   ce qui peut provoquer des changements mineurs de comportement (par exemple, les 
   plages de caractères dans les classes sont maintenant plus strictement interprétées), 
   et augmente la syntaxe d&#039;expression rationnelle existante.
  </p>

  <p class="para">
   <span class="function"><a href="function.preg-quote.php" class="function">preg_quote()</a></span> échappe désormais le caractère <code class="literal">&#039;#&#039;</code>.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.pdo-dblib">
  <h3 class="title">Fonctions Microsoft SQL Server et Sybase (PDO_DBLIB)</h3>

  <p class="para">
   L&#039;attribut <strong><code>PDO::DBLIB_ATTR_SKIP_EMPTY_ROWSETS</code></strong> a été ajouté pour 
   permettre le saut automatique des ensembles de lignes vides.
  </p>

  <p class="para">
   L&#039;attribut <strong><code>PDO::DBLIB_ATTR_TDS_VERSION</code></strong> a été ajouté pour 
   exposer la version de TDS.
  </p>

  <p class="para">
    Les colonnes DATETIME2 sont désormais traitées comme des colonnes DATETIME.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.pdo-sqlite">
  <h3 class="title">Fonctions SQLite (PDO_SQLITE)</h3>

  <p class="para">
   Les bases de données SQLite3 peuvent désormais être ouvertes en lecture seule en 
   définissant le nouvel attribut <strong><code>PDO::SQLITE_ATTR_OPEN_FLAGS</code></strong> à
   <strong><code>PDO::SQLITE_OPEN_READONLY</code></strong>.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.session">
  <h3 class="title">Manipulation de session</h3>

  <p class="para">
   <span class="function"><a href="function.session-set-cookie-params.php" class="function">session_set_cookie_params()</a></span> prend désormais en charge la signature 
   suivante :
   <div class="methodsynopsis dc-description">
    <span class="methodname"><a href="function.session-set-cookie-params.php" class="methodname">session_set_cookie_params</a></span>(<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$options</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

   où <code class="literal">$options</code> est un tableau associatif qui peut contenir chacune 
   de ces clés <code class="literal">&quot;lifetime&quot;</code>, <code class="literal">&quot;path&quot;</code>,
   <code class="literal">&quot;domain&quot;</code>, <code class="literal">&quot;secure&quot;</code>,
   <code class="literal">&quot;httponly&quot;</code> et <code class="literal">&quot;samesite&quot;</code>.
   Par conséquent, la valeur de retour de <span class="function"><a href="function.session-get-cookie-params.php" class="function">session_get_cookie_params()</a></span>
   a maintenant également un élément avec la clé <code class="literal">&quot;samesite&quot;</code>.
   En outre, la nouvelle directive ini <code class="literal">session.cookie_samesite</code>
   a été ajoutée pour définir la valeur par défaut de SameSite pour les cookies.
   Par défaut à <code class="literal">&quot;&quot;</code> (chaîne vide), de sorte qu&#039;aucune directive 
   SameSite n&#039;est définie. La valeur peut être <code class="literal">&quot;Lax&quot;</code> ou 
   <code class="literal">&quot;Strict&quot;</code>, qui définit la valeur de SameSite.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.tidy">
  <h3 class="title">Tidy</h3>

  <p class="para">
   Construire avec <a href="https://github.com/petdance/tidyp" class="link external">&raquo;&nbsp;tidyp</a> est maintenant
   géré de façon transparente. Étant donné que tidyp n&#039;offre pas d&#039;API pour obtenir la date de sortie, <span class="function"><a href="tidy.getrelease.php" class="function">tidy_get_release()</a></span> et <span class="methodname"><a href="tidy.getrelease.php" class="methodname">tidy::getRelease()</a></span> retournent <code class="literal">&#039;unknown&#039;</code> dans ce cas.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.xml">
  <h3 class="title">Parseur XML</h3>

  <p class="para">
   La valeur de retour de la procédure de rappel de 
   <span class="function"><a href="function.xml-set-external-entity-ref-handler.php" class="function">xml_set_external_entity_ref_handler()</a></span> n&#039;est plus ignorée
   si l&#039;extension a été construite avec libxml. Auparavant, la valeur 
   de retour était ignorée, et l&#039;analyse ne cessait jamais.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.zip">
  <h3 class="title">Zip</h3>

  <p class="para">
   Construire statiquement libzip est déconseillé, mais toujours possible en ajoutant 
   l&#039;option de configuration <strong class="option configure">--without-libzip</strong>.
  </p>
 </div>

 <div class="sect2" id="migration73.other-changes.zlib">
  <h3 class="title">Zlib Compression</h3>

  <p class="para">
   L&#039;option de contexte zlib/level pour <a href="wrappers.compression.php" class="link">compress.zlib wrapper</a> 
   pour faciliter la définition du niveau de compression souhaité a été ajoutée.
  </p>
 </div>

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