cvs: peardoc /fr/package/php/php-compat components.xml intro.xml /fr/package/php/php-compat/php-compat loadconstant.xml loadfunction.xml
| From: | Yannick Torres | Date: | Fri, 19 Nov 2004 11:20:47 +0000 |
| Subject: | cvs: peardoc /fr/package/php/php-compat components.xml intro.xml /fr/package/php/php-compat/php-compat loadconstant.xml loadfunction.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-5143@lists.php.net to get a copy of this message | ||
yannick Fri Nov 19 06:20:47 2004 EDT
Added files:
/peardoc/fr/package/php/php-compat/php-compat loadconstant.xml
loadfunction.xml
/peardoc/fr/package/php/php-compat components.xml intro.xml
Log:
initial translation
http://cvs.php.net/co.php/peardoc/fr/package/php/php-compat/php-compat/loadconstant.xml?r=1.1&p=1 Index: peardoc/fr/package/php/php-compat/php-compat/loadconstant.xml +++ peardoc/fr/package/php/php-compat/php-compat/loadconstant.xml <?xml version="1.0" encoding="ISO-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> <refentry id="package.php.php-compat.php-compat.loadconstant"> <refnamediv> <refname><function>PHP_Compat::loadConstant</function></refname> <refpurpose>Chargement d'une constante ou d'un tableau de constantes</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PHP/Compat.php'; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>PHP_Compat::loadConstant</function></funcdef> <paramdef>mixed <parameter>$constant</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.php.php-compat.loadconstant.desc"> &title.desc; <para>Charge une constante ou un tableau de constantes.</para> </refsect1> <refsect1 id="package.php.php-compat.loadconstant.parameter"> &title.param; <para> <variablelist> <varlistentry> <term>&type.mixed; <parameter>$constant</parameter></term> <listitem><para>Le nom ou un tableau de noms de constantes à charger</para></listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.php.php-compat.loadconstant.return"> &title.returns; <para>&type.mixed;</para> <para> <simplelist> <member>&true; si la constante a été chargée.</member> <member> &false; si la constante n'a pû être chargée. Soit elle n'a pû être chargée, soit elle est déjà définie.</member> <member> Si vous spécifiez un tableau de constantes à charger, un tableau de valeurs &true;/&false; est retourné. </member> </simplelist> </para> </refsect1> <refsect1 id="package.php.php-compat.loadconstant.example"> &title.example; <example> <title>Chargement d'une constante avec la classe :</title> <programlisting role="php"> <![CDATA[ <?php require_once 'PHP/Compat.php'; // Chargement de E_STRICT PHP_Compat::loadConstant('E_STRICT'); // Chargement de E_STRICT et de PATH_SEPATATOR PHP_Compat::loadConstant(array('E_STRICT', 'PATH_SEPARATOR')); // Chargement le groupe de constantes STD (STDIN, STDOUT, STDERR) PHP_Compat::loadConstant('STD'); ?> ]]> </programlisting> </example> <para>Vous pouvez également charger une constante sans utiliser la classe.</para> <example> <title>Chargement d'une constante manuellement :</title> <programlisting role="php"> <![CDATA[ <?php require_once 'PHP/Compat/Constant/E_STRICT.php'; ?> ]]> </programlisting> </example> </refsect1> <refsect1 id="package.php.php-compat.loadconstant.note"> &title.note; ¬e.shouldstatic; </refsect1> </refentry> <!-- 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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../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 --> http://cvs.php.net/co.php/peardoc/fr/package/php/php-compat/php-compat/loadfunction.xml?r=1.1&p=1 Index: peardoc/fr/package/php/php-compat/php-compat/loadfunction.xml +++ peardoc/fr/package/php/php-compat/php-compat/loadfunction.xml <?xml version="1.0" encoding="ISO-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> <refentry id="package.php.php-compat.php-compat.loadfunction"> <refnamediv> <refname><function>PHP_Compat::loadFunction</function></refname> <refpurpose>Charge une fonction ou un tableau de fonctions</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PHP/Compat.php'; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>PHP_Compat::loadFunction</function></funcdef> <paramdef>mixed <parameter>$function</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.php.php-compat.loadfunction.desc"> &title.desc; <para>Charge une fonction ou un tableau de fonctions.</para> </refsect1> <refsect1 id="package.php.php-compat.loadfunction.parameter"> &title.param; <para> <variablelist> <varlistentry> <term>&type.mixed; <parameter>$function</parameter></term> <listitem><para>Le nom ou un tableau de noms de fonctions à charger</para></listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.php.php-compat.loadfunction.return"> &title.returns; <para>&type.mixed;</para> <para> <simplelist> <member>&true; si la fonction a été chargée.</member> <member> &false; si la fonction n'a pas été chargée. Soit la fonction n'a pû être incluse, soit elle est déjà définie. </member> <member> Si vous spécifiez un tableau de fonctions à carger, un tableau de valeurs &true;/&false; est retoruné. </member> </simplelist> </para> </refsect1> <refsect1 id="package.php.php-compat.loadfunction.example"> &title.example; <example> <title>Chargement d'une fonction avec la classe :</title> <programlisting role="php"> <![CDATA[ <?php require_once 'PHP/Compat.php'; // Chargement de file_put_contents PHP_Compat::loadFunction('file_put_contents'); // Chargement de str_split, array_chunk et file_get_contents PHP_Compat::loadFunction(array('str_split', 'array_chunk', 'file_get_contents')); ?> ]]> </programlisting> </example> <para>Vous pouvez également charger une fonction sans utiliser la classe.</para> <example> <title>Chargement d'une fonction manuellement :</title> <programlisting role="php"> <![CDATA[ <?php require_once 'PHP/Compat/Function/file_put_contents.php'; ?> ]]> </programlisting> </example> </refsect1> <refsect1 id="package.php.php-compat.loadfunction.note"> &title.note; ¬e.shouldstatic; </refsect1> </refentry> <!-- 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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../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 --> http://cvs.php.net/co.php/peardoc/fr/package/php/php-compat/components.xml?r=1.1&p=1 Index: peardoc/fr/package/php/php-compat/components.xml +++ peardoc/fr/package/php/php-compat/components.xml <?xml version="1.0" encoding="ISO-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> <refentry id="package.php.php-compat.components"> <refnamediv> <refname>Composants</refname> <refpurpose>Liste des composants répliqués</refpurpose> </refnamediv> <refsect1> <title>Fonctions</title> <para>Les fonctions suivantes ont été répliquées :</para> <table> <title>Fonctions</title> <tgroup cols="2"> <thead> <row> <entry>Fonction</entry> <entry>Depuis</entry> </row> </thead> <tbody> <row> <entry>array_change_key_case</entry> <entry>PHP 4.2.0</entry> </row> <row> <entry>array_chunk</entry> <entry>PHP 4.2.0</entry> </row> <row> <entry>array_combine</entry> <entry>PHP 4.2.0</entry> </row> <row> <entry>array_diff_assoc</entry> <entry>PHP 4.2.0</entry> </row> <row> <entry>array_key_exists</entry> <entry>PHP 4.1.0</entry> </row> <row> <entry>array_search</entry> <entry>PHP 4.0.5</entry> </row> <row> <entry>array_udiff</entry> <entry>PHP 5</entry> </row> <row> <entry>array_udiff_assoc</entry> <entry>PHP 5</entry> </row> <row> <entry>call_user_func_array</entry> <entry>PHP 4.0.4</entry> </row> <row> <entry>constant</entry> <entry>PHP 4.0.4</entry> </row> <row> <entry>file_get_contents</entry> <entry>PHP 4.3.0</entry> </row> <row> <entry>file_put_content</entry> <entry>PHP 5</entry> </row> <row> <entry>fprintf</entry> <entry>PHP 5</entry> </row> <row> <entry>html_entity_decode</entry> <entry>PHP 4.3.0</entry> </row> <row> <entry>http_build_query</entry> <entry>PHP 5</entry> </row> <row> <entry>image_type_to_mime_type</entry> <entry>PHP 4.3.0</entry> </row> <row> <entry>is_a</entry> <entry>PHP 4.2.0</entry> </row> <row> <entry>ob_clean</entry> <entry>PHP 4.2.0</entry> </row> <row> <entry>ob_flush</entry> <entry>PHP 4.2.0</entry> </row> <row> <entry>ob_get_clean</entry> <entry>PHP 4.3.0</entry> </row> <row> <entry>ob_get_flush</entry> <entry>PHP 4.3.0</entry> </row> <row> <entry>scandir</entry> <entry>PHP 5</entry> </row> <row> <entry>str_ireplace</entry> <entry>PHP 5</entry> </row> <row> <entry>str_split</entry> <entry>PHP 5</entry> </row> <row> <entry>stripos</entry> <entry>PHP 5</entry> </row> <row> <entry>strripos</entry> <entry>PHP 5</entry> </row> <row> <entry>var_export</entry> <entry>PHP 4.2.0</entry> </row> <row> <entry>version_compare</entry> <entry>PHP 4.1.0</entry> </row> <row> <entry>vprintf</entry> <entry>PHP 4.1.0</entry> </row> <row> <entry>vsprintf</entry> <entry>PHP 4.1.0</entry> </row> </tbody> </tgroup> </table> </refsect1> <refsect1> <title>Constantes</title> <para>Les constantes suivantes ont été répliquées :</para> <table> <title>Constantes</title> <tgroup cols="3"> <thead> <row> <entry>Fichier</entry> <entry>Constantes</entry> <entry>Depuis</entry> </row> </thead> <tbody> <row> <entry>E_STRICT</entry> <entry><simplelist><member>E_STRICT</member></simplelist></entry> <entry>PHP 5</entry> </row> <row> <entry>FILE</entry> <entry> <simplelist> <member>FILE_USE_INCLUDE_PATH</member> <member>FILE_IGNORE_NEW_LINES</member> <member>FILE_SKIP_EMPTY_LINES</member> <member>FILE_APPEND</member> <member>FILE_NO_DEFAULT_CONTEXT</member> </simplelist> </entry> <entry>PHP 5</entry> </row> <row> <entry>PATH_SEPARATOR</entry> <entry><simplelist><member>PATH_SEPARATOR</member></simplelist></entry> <entry>PHP 4.3.0-RC2</entry> </row> <row> <entry>STD</entry> <entry> <simplelist> <member>STDIN</member> <member>STDOUT</member> <member>STDERR</member> </simplelist> </entry> <entry>PHP 4.3.0</entry> </row> </tbody> </tgroup> </table> </refsect1> </refentry> <!-- 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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../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 --> http://cvs.php.net/co.php/peardoc/fr/package/php/php-compat/intro.xml?r=1.1&p=1 Index: peardoc/fr/package/php/php-compat/intro.xml +++ peardoc/fr/package/php/php-compat/intro.xml <?xml version="1.0" encoding="ISO-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> <refentry id="package.php.php-compat.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose>But et exemple simple d'utilisation</refpurpose> </refnamediv> <refsect1> <title>Description</title> <para> PHP_Compat fournit des fonctionnalités manquantes comme des fonctions et des constantes pour les anciennes versions de PHP. </para> <para> Les fonctions créées sont prévues pour être interchangeable avec leurs équivalents nativees. Elles ont la même signature, les mêmes valeurs retournées et renvoient les mêmes erreurs. Chaque fonction est examinée pour s'assurer de l'exactitude. </para> </refsect1> <refsect1> <title>Exemple</title> <example> <title>Chargement d'un cmposant avec PHP_Compat :</title> <programlisting role="php"> <![CDATA[ require_once 'PHP/Compat.php'; PHP_Compat::loadFunction('file_get_contents'); ]]> </programlisting> </example> <para>Ou, si vous ne voulez pas utiliser la classe, vous pouvez la charger manuellement.</para> <example> <title>Chargement d'un composant manuellement :</title> <programlisting role="php"> <![CDATA[ require_once 'PHP/Compat/Function/file_put_contents.php'; ]]> </programlisting> </example> <para>La fonction est alors prête à être utilisée normalement.</para> <para> PHP_Compat est prévu pour être employé facilement. Il n'a aucune dépendance et peut être utilisé en dehors de l'infrastructure PEAR. </para> </refsect1> </refentry> <!-- 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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../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 -->
http://cvs.php.net/co.php/peardoc/fr/package/php/php-compat/php-compat/loadconstant.xml?r=1.1&p=1 Index: peardoc/fr/package/php/php-compat/php-compat/loadconstant.xml +++ peardoc/fr/package/php/php-compat/php-compat/loadconstant.xml <?xml version="1.0" encoding="ISO-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> <refentry id="package.php.php-compat.php-compat.loadconstant"> <refnamediv> <refname><function>PHP_Compat::loadConstant</function></refname> <refpurpose>Chargement d'une constante ou d'un tableau de constantes</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PHP/Compat.php'; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>PHP_Compat::loadConstant</function></funcdef> <paramdef>mixed <parameter>$constant</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.php.php-compat.loadconstant.desc"> &title.desc; <para>Charge une constante ou un tableau de constantes.</para> </refsect1> <refsect1 id="package.php.php-compat.loadconstant.parameter"> &title.param; <para> <variablelist> <varlistentry> <term>&type.mixed; <parameter>$constant</parameter></term> <listitem><para>Le nom ou un tableau de noms de constantes à charger</para></listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.php.php-compat.loadconstant.return"> &title.returns; <para>&type.mixed;</para> <para> <simplelist> <member>&true; si la constante a été chargée.</member> <member> &false; si la constante n'a pû être chargée. Soit elle n'a pû être chargée, soit elle est déjà définie.</member> <member> Si vous spécifiez un tableau de constantes à charger, un tableau de valeurs &true;/&false; est retourné. </member> </simplelist> </para> </refsect1> <refsect1 id="package.php.php-compat.loadconstant.example"> &title.example; <example> <title>Chargement d'une constante avec la classe :</title> <programlisting role="php"> <![CDATA[ <?php require_once 'PHP/Compat.php'; // Chargement de E_STRICT PHP_Compat::loadConstant('E_STRICT'); // Chargement de E_STRICT et de PATH_SEPATATOR PHP_Compat::loadConstant(array('E_STRICT', 'PATH_SEPARATOR')); // Chargement le groupe de constantes STD (STDIN, STDOUT, STDERR) PHP_Compat::loadConstant('STD'); ?> ]]> </programlisting> </example> <para>Vous pouvez également charger une constante sans utiliser la classe.</para> <example> <title>Chargement d'une constante manuellement :</title> <programlisting role="php"> <![CDATA[ <?php require_once 'PHP/Compat/Constant/E_STRICT.php'; ?> ]]> </programlisting> </example> </refsect1> <refsect1 id="package.php.php-compat.loadconstant.note"> &title.note; ¬e.shouldstatic; </refsect1> </refentry> <!-- 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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../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 --> http://cvs.php.net/co.php/peardoc/fr/package/php/php-compat/php-compat/loadfunction.xml?r=1.1&p=1 Index: peardoc/fr/package/php/php-compat/php-compat/loadfunction.xml +++ peardoc/fr/package/php/php-compat/php-compat/loadfunction.xml <?xml version="1.0" encoding="ISO-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> <refentry id="package.php.php-compat.php-compat.loadfunction"> <refnamediv> <refname><function>PHP_Compat::loadFunction</function></refname> <refpurpose>Charge une fonction ou un tableau de fonctions</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'PHP/Compat.php'; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>PHP_Compat::loadFunction</function></funcdef> <paramdef>mixed <parameter>$function</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.php.php-compat.loadfunction.desc"> &title.desc; <para>Charge une fonction ou un tableau de fonctions.</para> </refsect1> <refsect1 id="package.php.php-compat.loadfunction.parameter"> &title.param; <para> <variablelist> <varlistentry> <term>&type.mixed; <parameter>$function</parameter></term> <listitem><para>Le nom ou un tableau de noms de fonctions à charger</para></listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.php.php-compat.loadfunction.return"> &title.returns; <para>&type.mixed;</para> <para> <simplelist> <member>&true; si la fonction a été chargée.</member> <member> &false; si la fonction n'a pas été chargée. Soit la fonction n'a pû être incluse, soit elle est déjà définie. </member> <member> Si vous spécifiez un tableau de fonctions à carger, un tableau de valeurs &true;/&false; est retoruné. </member> </simplelist> </para> </refsect1> <refsect1 id="package.php.php-compat.loadfunction.example"> &title.example; <example> <title>Chargement d'une fonction avec la classe :</title> <programlisting role="php"> <![CDATA[ <?php require_once 'PHP/Compat.php'; // Chargement de file_put_contents PHP_Compat::loadFunction('file_put_contents'); // Chargement de str_split, array_chunk et file_get_contents PHP_Compat::loadFunction(array('str_split', 'array_chunk', 'file_get_contents')); ?> ]]> </programlisting> </example> <para>Vous pouvez également charger une fonction sans utiliser la classe.</para> <example> <title>Chargement d'une fonction manuellement :</title> <programlisting role="php"> <![CDATA[ <?php require_once 'PHP/Compat/Function/file_put_contents.php'; ?> ]]> </programlisting> </example> </refsect1> <refsect1 id="package.php.php-compat.loadfunction.note"> &title.note; ¬e.shouldstatic; </refsect1> </refentry> <!-- 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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../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 --> http://cvs.php.net/co.php/peardoc/fr/package/php/php-compat/components.xml?r=1.1&p=1 Index: peardoc/fr/package/php/php-compat/components.xml +++ peardoc/fr/package/php/php-compat/components.xml <?xml version="1.0" encoding="ISO-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> <refentry id="package.php.php-compat.components"> <refnamediv> <refname>Composants</refname> <refpurpose>Liste des composants répliqués</refpurpose> </refnamediv> <refsect1> <title>Fonctions</title> <para>Les fonctions suivantes ont été répliquées :</para> <table> <title>Fonctions</title> <tgroup cols="2"> <thead> <row> <entry>Fonction</entry> <entry>Depuis</entry> </row> </thead> <tbody> <row> <entry>array_change_key_case</entry> <entry>PHP 4.2.0</entry> </row> <row> <entry>array_chunk</entry> <entry>PHP 4.2.0</entry> </row> <row> <entry>array_combine</entry> <entry>PHP 4.2.0</entry> </row> <row> <entry>array_diff_assoc</entry> <entry>PHP 4.2.0</entry> </row> <row> <entry>array_key_exists</entry> <entry>PHP 4.1.0</entry> </row> <row> <entry>array_search</entry> <entry>PHP 4.0.5</entry> </row> <row> <entry>array_udiff</entry> <entry>PHP 5</entry> </row> <row> <entry>array_udiff_assoc</entry> <entry>PHP 5</entry> </row> <row> <entry>call_user_func_array</entry> <entry>PHP 4.0.4</entry> </row> <row> <entry>constant</entry> <entry>PHP 4.0.4</entry> </row> <row> <entry>file_get_contents</entry> <entry>PHP 4.3.0</entry> </row> <row> <entry>file_put_content</entry> <entry>PHP 5</entry> </row> <row> <entry>fprintf</entry> <entry>PHP 5</entry> </row> <row> <entry>html_entity_decode</entry> <entry>PHP 4.3.0</entry> </row> <row> <entry>http_build_query</entry> <entry>PHP 5</entry> </row> <row> <entry>image_type_to_mime_type</entry> <entry>PHP 4.3.0</entry> </row> <row> <entry>is_a</entry> <entry>PHP 4.2.0</entry> </row> <row> <entry>ob_clean</entry> <entry>PHP 4.2.0</entry> </row> <row> <entry>ob_flush</entry> <entry>PHP 4.2.0</entry> </row> <row> <entry>ob_get_clean</entry> <entry>PHP 4.3.0</entry> </row> <row> <entry>ob_get_flush</entry> <entry>PHP 4.3.0</entry> </row> <row> <entry>scandir</entry> <entry>PHP 5</entry> </row> <row> <entry>str_ireplace</entry> <entry>PHP 5</entry> </row> <row> <entry>str_split</entry> <entry>PHP 5</entry> </row> <row> <entry>stripos</entry> <entry>PHP 5</entry> </row> <row> <entry>strripos</entry> <entry>PHP 5</entry> </row> <row> <entry>var_export</entry> <entry>PHP 4.2.0</entry> </row> <row> <entry>version_compare</entry> <entry>PHP 4.1.0</entry> </row> <row> <entry>vprintf</entry> <entry>PHP 4.1.0</entry> </row> <row> <entry>vsprintf</entry> <entry>PHP 4.1.0</entry> </row> </tbody> </tgroup> </table> </refsect1> <refsect1> <title>Constantes</title> <para>Les constantes suivantes ont été répliquées :</para> <table> <title>Constantes</title> <tgroup cols="3"> <thead> <row> <entry>Fichier</entry> <entry>Constantes</entry> <entry>Depuis</entry> </row> </thead> <tbody> <row> <entry>E_STRICT</entry> <entry><simplelist><member>E_STRICT</member></simplelist></entry> <entry>PHP 5</entry> </row> <row> <entry>FILE</entry> <entry> <simplelist> <member>FILE_USE_INCLUDE_PATH</member> <member>FILE_IGNORE_NEW_LINES</member> <member>FILE_SKIP_EMPTY_LINES</member> <member>FILE_APPEND</member> <member>FILE_NO_DEFAULT_CONTEXT</member> </simplelist> </entry> <entry>PHP 5</entry> </row> <row> <entry>PATH_SEPARATOR</entry> <entry><simplelist><member>PATH_SEPARATOR</member></simplelist></entry> <entry>PHP 4.3.0-RC2</entry> </row> <row> <entry>STD</entry> <entry> <simplelist> <member>STDIN</member> <member>STDOUT</member> <member>STDERR</member> </simplelist> </entry> <entry>PHP 4.3.0</entry> </row> </tbody> </tgroup> </table> </refsect1> </refentry> <!-- 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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../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 --> http://cvs.php.net/co.php/peardoc/fr/package/php/php-compat/intro.xml?r=1.1&p=1 Index: peardoc/fr/package/php/php-compat/intro.xml +++ peardoc/fr/package/php/php-compat/intro.xml <?xml version="1.0" encoding="ISO-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> <refentry id="package.php.php-compat.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose>But et exemple simple d'utilisation</refpurpose> </refnamediv> <refsect1> <title>Description</title> <para> PHP_Compat fournit des fonctionnalités manquantes comme des fonctions et des constantes pour les anciennes versions de PHP. </para> <para> Les fonctions créées sont prévues pour être interchangeable avec leurs équivalents nativees. Elles ont la même signature, les mêmes valeurs retournées et renvoient les mêmes erreurs. Chaque fonction est examinée pour s'assurer de l'exactitude. </para> </refsect1> <refsect1> <title>Exemple</title> <example> <title>Chargement d'un cmposant avec PHP_Compat :</title> <programlisting role="php"> <![CDATA[ require_once 'PHP/Compat.php'; PHP_Compat::loadFunction('file_get_contents'); ]]> </programlisting> </example> <para>Ou, si vous ne voulez pas utiliser la classe, vous pouvez la charger manuellement.</para> <example> <title>Chargement d'un composant manuellement :</title> <programlisting role="php"> <![CDATA[ require_once 'PHP/Compat/Function/file_put_contents.php'; ]]> </programlisting> </example> <para>La fonction est alors prête à être utilisée normalement.</para> <para> PHP_Compat est prévu pour être employé facilement. Il n'a aucune dépendance et peut être utilisé en dehors de l'infrastructure PEAR. </para> </refsect1> </refentry> <!-- 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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../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 -->