Files
doc-fr/appendices/migration70/deprecated.xml
T
2018-02-27 20:42:39 +00:00

142 lines
3.9 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: a8599f426e5178777f7256002979482d9a810387 Maintainer: jbnahan Status: ready -->
<!-- Reviewed: no -->
<sect1 xml:id="migration70.deprecated">
<title>Les fonctionnalités dépréciées dans PHP 7.0.x</title>
<!-- password_hash() salt option, PHP4-style constructors etc -->
<!-- skeleton
<sect2 xml:id="migration70.deprecated.id">
<title>Title</title>
<para>
Content
</para>
</sect2>
-->
<sect2 xml:id="migration70.deprecated.php4-constructors">
<title>Constructeurs de PHP 4</title>
<para>
Les constructeurs de style PHP 4 (méthodes ayant le même nom que la classe dans
laquelle elles sont définies) sont obsolètes et seront supprimés à lavenir. PHP 7
émet <constant>E_DEPRECATED</constant> si le constructeur de PHP 4 est le seul
constructeur défini dans la classe. Les classes qui implémentent une méthode
<function>__construct</function> ne sont pas affectées par ce changement.
</para>
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
class foo {
function foo() {
echo 'Je suis le constructeur';
}
}
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
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
]]>
</screen>
</informalexample>
</sect2>
<sect2 xml:id="migration70.deprecated.static-calls">
<title>Les appels statiques à des méthodes non statiques</title>
<para>
Les appels <link linkend="language.oop5.static">statiques</link> aux méthodes
qui ne sont pas déclarées avec le mot-clé <command>static</command> sont
dépréciés et peuvent être supprimés dans le futur.
</para>
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
class foo {
function bar() {
echo 'Je ne suis pas statique !';
}
}
foo::bar();
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
Deprecated: Non-static method foo::bar() should not be called statically in - on line 8
Je ne suis pas statique !
]]>
</screen>
</informalexample>
</sect2>
<sect2 xml:id="migration70.deprecated.pwshash-salt-option">
<title>L'option salt de la fonction <function>password_hash</function></title>
<para>
L'option salt de la fonction <function>password_hash</function> est dépréciée
pour épargner aux développeurs de générer leurs propres salts (habituellement non sécurisés).
La fonction elle-même génère cryptographiquement un salt sécurisé en labsence d'un salt
fourni par le développeur. Donc, la génération d'un salt sur mesure ne sera plus nécessaire.
</para>
</sect2>
<sect2 xml:id="migration70.deprecated.capture-session-meta">
<title>L'option <literal>capture_session_meta</literal> du contexte SSL</title>
<para>
L'option <literal>capture_session_meta</literal> du contexte SSL est dépréciée.
Les métadonnées SSL sont maintenant disponibles à travers la fonction
<function>stream_get_meta_data</function>.
</para>
</sect2>
<sect2 xml:id="migration70.deprecated.ldap">
<title>Dépréciation dans <link linkend="book.ldap">LDAP</link></title>
<simpara>
Les fonctions suivantes sont dépréciées :
</simpara>
<itemizedlist>
<listitem>
<simpara>
<function>ldap_sort</function>
</simpara>
</listitem>
</itemizedlist>
</sect2>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->