cvs: phpdoc-fr /reference/errorfunc constants.xml examples.xml ini.xml reference.xml /reference/errorfunc/functions debug-backtrace.xml
debug-print-backtrace.xml error-log.xml error-reporting.xml restore-error-handler.xml set-error-handler.xml trigger-error.xml user-error.xml

From: Date: Thu, 29 Apr 2004 13:51:11 +0000
Subject: cvs: phpdoc-fr /reference/errorfunc constants.xml examples.xml ini.xml reference.xml /reference/errorfunc/functions debug-backtrace.xml
debug-print-backtrace.xml error-log.xml error-reporting.xml restore-error-handler.xml set-error-handler.xml trigger-error.xml user-error.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-2370@lists.php.net to get a copy of this message
yannick Thu Apr 29 09:51:11 2004 EDT Modified files: /phpdoc-fr/reference/errorfunc/functions debug-backtrace.xml debug-print-backtrace.xml error-log.xml error-reporting.xml restore-error-handler.xml set-error-handler.xml trigger-error.xml user-error.xml /phpdoc-fr/reference/errorfunc constants.xml examples.xml ini.xml reference.xml Log: synch with EN Revision

http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml diff -u phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml:1.6 phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml:1.7 --- phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml:1.6 Wed Feb 25 07:35:34 2004 +++ phpdoc-fr/reference/errorfunc/functions/debug-backtrace.xml Thu Apr 29 09:51:10 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> <refentry id="function.debug-backtrace"> <refnamediv> <refname>debug_backtrace</refname> @@ -66,7 +66,9 @@ <entry>type</entry> <entry><type>string</type></entry> <entry> - Le type de classe courante. + Le type de classe courante. Si une méthode est appelée, "->" est retourné. + Si une méthode statique est appelé, "::" est retourné. Si une fonction est appelée, + rien ne sera retourné. </entry> </row> <row> @@ -89,26 +91,29 @@ <title>Exemple avec <function>debug_backtrace</function></title> <programlisting role="php"> <![CDATA[ -// premier fichier : a.php <?php +// premier fichier : a.php -function a_test($str) { - - print "\nBonjour : $str"; - +function a_test($str) +{ + echo "\nBonjour : $str"; var_dump(debug_backtrace()); } a_test('ami'); ?> -// second fichier : b.php <?php +// second fichier : b.php include_once '/tmp/a.php'; ?> - -/* Résultats lors de l'exécution de /tmp/b.php - +]]> + </programlisting> + <para> + Résultat de l'éxécution de <filename>/tmp/b.php</filename>: + </para> + <screen> +<![CDATA[ Bonjour : ami array(2) { [0]=> @@ -118,7 +123,7 @@ ["function"] => string(6) "a_test" ["args"]=> array(1) { - [0] => &string(3) "ami" + [0] => &string(6) "ami" } } [1]=> @@ -132,7 +137,6 @@ ["function"] => string(12) "include_once" } } -*/ ]]> </programlisting> </example> http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/functions/debug-print-backtrace.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/errorfunc/functions/debug-print-backtrace.xml diff -u phpdoc-fr/reference/errorfunc/functions/debug-print-backtrace.xml:1.3 phpdoc-fr/reference/errorfunc/functions/debug-print-backtrace.xml:1.4 --- phpdoc-fr/reference/errorfunc/functions/debug-print-backtrace.xml:1.3 Wed Feb 25 07:35:34 2004 +++ phpdoc-fr/reference/errorfunc/functions/debug-print-backtrace.xml Thu Apr 29 09:51:10 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <refentry id="function.debug-print-backtrace"> <refnamediv> <refname>debug_print_backtrace</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/functions/error-log.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/errorfunc/functions/error-log.xml diff -u phpdoc-fr/reference/errorfunc/functions/error-log.xml:1.6 phpdoc-fr/reference/errorfunc/functions/error-log.xml:1.7 --- phpdoc-fr/reference/errorfunc/functions/error-log.xml:1.6 Tue Feb 24 13:09:24 2004 +++ phpdoc-fr/reference/errorfunc/functions/error-log.xml Thu Apr 29 09:51:10 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/errorfunc.xml, last change in rev 1.10 --> -<!-- last change to 'error-log' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <refentry id="function.error-log"> <refnamediv> <refname>error_log</refname> @@ -35,7 +32,7 @@ <parameter>message</parameter> est envoyé à l'historique PHP, qui est basé sur l'historique système ou un fichier, en fonction de la configuration de <link - linkend="ini.error-log">error_log</link>. + linkend="ini.error-log">error_log</link>. C'est l'option par défaut. </entry> </row> <row> @@ -72,6 +69,13 @@ </tgroup> </table> </para> + <note> + <simpara> + Lorsque <parameter>message_type</parameter> est positionné à <literal>3</literal>, + une nouvelle ligne n'est pas automatiquement ajoutée à la fin de la chaîne + <parameter>message</parameter>. + </simpara> + </note> <warning> <para> Le débuggage à distance via TCP/IP est une @@ -80,7 +84,7 @@ </para> </warning> <para> - <example role="php"> + <example> <title>Exemples avec <function>error_log</function></title> <programlisting role="php"> <![CDATA[ http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/functions/error-reporting.xml?r1=1.11&r2=1.12&ty=u Index: phpdoc-fr/reference/errorfunc/functions/error-reporting.xml diff -u phpdoc-fr/reference/errorfunc/functions/error-reporting.xml:1.11 phpdoc-fr/reference/errorfunc/functions/error-reporting.xml:1.12 --- phpdoc-fr/reference/errorfunc/functions/error-reporting.xml:1.11 Tue Mar 23 05:57:22 2004 +++ phpdoc-fr/reference/errorfunc/functions/error-reporting.xml Thu Apr 29 09:51:10 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/errorfunc.xml, last change in rev 1.2 --> -<!-- last change to 'error-reporting' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <refentry id="function.error-reporting"> <refnamediv> <refname>error_reporting</refname> @@ -73,8 +70,8 @@ <tgroup cols="2"> <thead> <row> - <entry>constante</entry> <entry>valeur</entry> + <entry>constante</entry> </row> </thead> <tbody> @@ -145,6 +142,12 @@ </entry> </row> <row> + <entry>2047</entry> + <entry> + <link linkend="e-all">E_ALL</link> + </entry> + </row> + <row> <entry>2048</entry> <entry> <link linkend="e-strict">E_STRICT</link> @@ -156,7 +159,7 @@ <link linkend="e-all">E_ALL</link> </entry> </row> - </tbody> + </tbody> </tgroup> </table> </para> http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/functions/restore-error-handler.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/errorfunc/functions/restore-error-handler.xml diff -u phpdoc-fr/reference/errorfunc/functions/restore-error-handler.xml:1.5 phpdoc-fr/reference/errorfunc/functions/restore-error-handler.xml:1.6 --- phpdoc-fr/reference/errorfunc/functions/restore-error-handler.xml:1.5 Tue Feb 24 13:09:24 2004 +++ phpdoc-fr/reference/errorfunc/functions/restore-error-handler.xml Thu Apr 29 09:51:10 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/errorfunc.xml, last change in rev 1.1 --> -<!-- last change to 'restore-error-handler' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.restore-error-handler"> <refnamediv> <refname>restore_error_handler</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml?r1=1.11&r2=1.12&ty=u Index: phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml diff -u phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml:1.11 phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml:1.12 --- phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml:1.11 Mon Apr 26 10:59:11 2004 +++ phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml Thu Apr 29 09:51:10 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/errorfunc.xml, last change in rev 1.10 --> -<!-- last change to 'set-error-handler' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.20 Maintainer: yannick Status: ready --> <refentry id="function.set-error-handler"> <refnamediv> <refname>set_error_handler</refname> @@ -144,36 +141,41 @@ error_reporting (FATAL | ERROR | WARNING); // gestionnaire d'erreurs -function myErrorHandler ($errno, $errstr, $errfile, $errline) { +function myErrorHandler ($errno, $errstr, $errfile, $errline) +{ switch ($errno) { case FATAL: - echo "<b>FATAL</b> [$errno] $errstr<br>\n"; + echo "<b>FATAL</b> [$errno] $errstr<br />\n"; echo " Fatal error in line ".$errline." of file ".$errfile; - echo ", PHP ".PHP_VERSION." (".PHP_OS.")<br>\n"; + echo ", PHP ".PHP_VERSION." (".PHP_OS.")<br />\n"; echo "Aborting...<br>\n"; exit(1); break; case ERROR: - echo "<b>ERROR</b> [$errno] $errstr<br>\n"; + echo "<b>ERROR</b> [$errno] $errstr<br />\n"; break; case WARNING: - echo "<b>WARNING</b> [$errno] $errstr<br>\n"; + echo "<b>WARNING</b> [$errno] $errstr<br />\n"; break; default: - echo "Unkown error type: [$errno] $errstr<br>\n"; + echo "Unkown error type: [$errno] $errstr<br />\n"; break; } } // fonction pour tester la gestion d'erreur -function scale_by_log ($vect, $scale) { - if ( !is_numeric($scale) || $scale <= 0 ) +function scale_by_log ($vect, $scale) +{ + if ( !is_numeric($scale) || $scale <= 0 ) { trigger_error("log(x) for x <= 0 is undefined, you used: scale = $scale", FATAL); + } + if (!is_array($vect)) { trigger_error("Incorrect input vector, array of values expected", ERROR); return null; } + for ($i=0; $i<count($vect); $i++) { if (!is_numeric($vect[$i])) trigger_error("Value at position $i is not a number, using 0 (zero)", @@ -228,7 +230,7 @@ ) ---- vecteur b - une alerte (b = log(PI) * a) -<b>WARNING</b> [1024] Value at position 2 is not a number, using 0 (zero)<br> +<b>WARNING</b> [1024] Value at position 2 is not a number, using 0 (zero)<br /> Array ( [0] => 2.2894597716988 @@ -240,13 +242,13 @@ ) ---- vecteur c - une erreur -<b>ERROR</b> [512] Incorrect input vector, array of values expected<br> +<b>ERROR</b> [512] Incorrect input vector, array of values expected<br /> NULL ---- vecteur d - erreur fatale -<b>FATAL</b> [256] log(x) for x <= 0 is undefined, you used: scale = -2.5<br> - Fatal error in line 37 of file /Users/imac/-, PHP 5.0.0-dev (Darwin)<br> -Aborting...<br> +<b>FATAL</b> [256] log(x) for x <= 0 is undefined, you used: scale = -2.5<br /> + Fatal error in line 37 of file /Users/imac/-, PHP 5.0.0-dev (Darwin)<br /> +Aborting...<br /> ]]> </programlisting> </example> @@ -260,7 +262,7 @@ de l'erreur courante de <function>error_reporting</function> et faire réagir la fonction de gestion des erreurs en fonction. Cette remarque est notamment valable si la commande a été - préfixée par <link linkend="language.operators.errorcontrol">&#64;</link> + préfixée par <link linkend="language.operators.errorcontrol">@</link> (0 sera retourné). </para> <para> @@ -276,6 +278,12 @@ pas être appelé, car il n'est pas encore enregistré. </para> </note> + <note> + <para> + La second paramètre <parameter>error_types</parameter> a été introduit + en &php; 5. + </para> + </note> <para> Voir aussi <function>error_reporting</function>, http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/functions/trigger-error.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/errorfunc/functions/trigger-error.xml diff -u phpdoc-fr/reference/errorfunc/functions/trigger-error.xml:1.8 phpdoc-fr/reference/errorfunc/functions/trigger-error.xml:1.9 --- phpdoc-fr/reference/errorfunc/functions/trigger-error.xml:1.8 Tue Feb 24 13:09:24 2004 +++ phpdoc-fr/reference/errorfunc/functions/trigger-error.xml Thu Apr 29 09:51:10 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/errorfunc.xml, last change in rev 1.10 --> -<!-- last change to 'trigger-error' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <refentry id="function.trigger-error"> <refnamediv> <refname>trigger_error</refname> @@ -34,8 +31,9 @@ <programlisting role="php"> <![CDATA[ <?php -if (assert ($divisor == 0)) +if (assert ($divisor == 0)) { trigger_error ("Impossible de diviser par zéro", E_USER_ERROR); +} ?> ]]> </programlisting> http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/functions/user-error.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/errorfunc/functions/user-error.xml diff -u phpdoc-fr/reference/errorfunc/functions/user-error.xml:1.4 phpdoc-fr/reference/errorfunc/functions/user-error.xml:1.5 --- phpdoc-fr/reference/errorfunc/functions/user-error.xml:1.4 Tue Feb 24 13:09:24 2004 +++ phpdoc-fr/reference/errorfunc/functions/user-error.xml Thu Apr 29 09:51:10 2004 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/errorfunc.xml, last change in rev 1.10 --> -<!-- last change to 'user-error' in en/ tree in rev 1.1 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.user-error"> <refnamediv> <refname>user_error</refname> http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/constants.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-fr/reference/errorfunc/constants.xml diff -u phpdoc-fr/reference/errorfunc/constants.xml:1.9 phpdoc-fr/reference/errorfunc/constants.xml:1.10 --- phpdoc-fr/reference/errorfunc/constants.xml:1.9 Wed Feb 25 07:35:33 2004 +++ phpdoc-fr/reference/errorfunc/constants.xml Thu Apr 29 09:51:10 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> <section id="errorfunc.constants"> &reftitle.constants; &extension.constants.core; @@ -27,7 +27,7 @@ <entry>1</entry> <entry> <constant>E_ERROR</constant> - (<type>integer</type>) + (&integer;) </entry> <entry> Les erreurs sont aussi affichées par défaut, et @@ -42,7 +42,7 @@ <entry>2</entry> <entry> <constant>E_WARNING</constant> - (<type>integer</type>) + (&integer;) </entry> <entry> Les alertes sont affichées par défaut, mais n'interrompent @@ -58,7 +58,7 @@ <entry>4</entry> <entry> <constant>E_PARSE</constant> - (<type>integer</type>) + (&integer;) </entry> <entry> Les erreurs d'analyse ne doivent être générées @@ -96,7 +96,7 @@ elles sont générées par le code de &php;. Les fonctions ne doivent pas générer ce genre d'erreur. </entry> - <entry>&php; 4 seulement</entry> + <entry>depuis &php; 4 seulement</entry> </row> <row id="e-core-warning"> @@ -110,42 +110,42 @@ générées par le code de &php;. Les fonctions ne doivent pas générer ce genre d'erreur. </entry> - <entry>&php; 4 seulement</entry> + <entry>depuis &php; 4 seulement</entry> </row> <row id="e-compile-error"> <entry>64</entry> <entry> <constant>E_COMPILE_ERROR</constant> - (<type>integer</type>) + (&integer;) </entry> <entry> Elles sont similaires à <constant>E_ERROR</constant>, mais elles sont générées par Zend Scripting Engine. Les fonctions ne doivent pas générer ce genre d'erreur. </entry> - <entry>&php; 4 seulement</entry> + <entry>depuis &php; 4 seulement</entry> </row> <row id="e-compile-warning"> <entry>128</entry> <entry> <constant>E_COMPILE_WARNING</constant> - (<type>integer</type>) + (&integer;) </entry> <entry> Elles sont similaires à <constant>E_WARNING</constant>, mais elles sont générées par Zend Scripting Engine. Les fonctions ne doivent pas générer ce genre d'erreur. </entry> - <entry>&php; 4 seulement</entry> + <entry>depuis &php; 4 seulement</entry> </row> <row id="e-user-error"> <entry>256</entry> <entry> <constant>E_USER_ERROR</constant> - (<type>integer</type>) + (&integer;) </entry> <entry> <constant>E_USER_ERROR</constant> est comparable à @@ -153,14 +153,14 @@ par l'utilisation de la fonction <function>trigger_error</function>. Les fonctions ne doivent pas générer ce genre d'erreur. </entry> - <entry>&php; 4 seulement</entry> + <entry>depuis &php; 4 seulement</entry> </row> <row id="e-user-warning"> <entry>512</entry> <entry> <constant>E_USER_WARNING</constant> - (<type>integer</type>) + (&integer;) </entry> <entry> <constant>E_USER_WARNING</constant> est comparable à @@ -168,14 +168,14 @@ par l'utilisation de la fonction <function>trigger_error</function>. Les fonctions ne doivent pas générer ce genre d'erreur. </entry> - <entry>&php; 4 seulement</entry> + <entry>depuis &php; 4 seulement</entry> </row> <row id="e-user-notice"> <entry>1024</entry> <entry> <constant>E_USER_NOTICE</constant> - (<type>integer</type>) + (&integer;) </entry> <entry> <constant>E_USER_WARNING</constant> est comparable à @@ -183,36 +183,37 @@ fonction <function>trigger_error</function>. Les fonctions ne doivent pas générer ce genre d'erreur. </entry> - <entry>&php; 4 seulement</entry> + <entry>depuis &php; 4 seulement</entry> + </row> + + <row id="e-all"> + <entry>2047</entry> + <entry> + <constant>E_ALL</constant> + (&integer;) + </entry> + <entry> + Toutes les erreurs et alertes supportées sauf le niveau + <constant>E_STRICT</constant>. + </entry> + <entry></entry> </row> <row id="e-strict"> <entry>2048</entry> <entry> <constant>E_STRICT</constant> - (<type>integer</type>) + (&integer;) </entry> <entry> Notices au moment de l'exécution. Permet d'obtenir des suggestions de &php; pour modifier votre code, assurant ainsi une meilleure interopérabilité et compatibilité de celui-ci. </entry> - <entry> - &php; 5 seulement. - </entry> + <entry>&php; 5 seulement.</entry> </row> - <row id="e-all"> - <entry>4095</entry> - <entry> - <constant>E_ALL</constant> - (<type>integer</type>) - </entry> - <entry> - Toutes les erreurs et alertes supportées. - </entry> - <entry>A partir de &php; 5.0.0 la valeur a changé de 2047 à 4095.</entry> - </row> + </tbody> </tgroup> http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/examples.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/errorfunc/examples.xml diff -u phpdoc-fr/reference/errorfunc/examples.xml:1.4 phpdoc-fr/reference/errorfunc/examples.xml:1.5 --- phpdoc-fr/reference/errorfunc/examples.xml:1.4 Wed Feb 25 07:35:33 2004 +++ phpdoc-fr/reference/errorfunc/examples.xml Thu Apr 29 09:51:11 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: read --> <section id="errorfunc.examples"> &reftitle.examples; <para> @@ -24,19 +24,21 @@ // Définit un tableau associatif avec les chaînes d'erreur // En fait, les seuls niveaux qui nous interessent - // sont 2,8,256,512 et 1024 + // sont E_WARNING, E_NOTICE, E_USER_ERROR, + // E_USER_WARNING et E_USER_NOTICE $errortype = array ( - 1 => "Erreur", - 2 => "Alerte", - 4 => "Error d'analyse", - 8 => "Note", - 16 => "Core Error", - 32 => "Core Warning", - 64 => "Compile Error", - 128 => "Compile Warning", - 256 => "Erreur spécifique", - 512 => "Alerte spécifique", - 1024=> "Note spécifique" + E_ERROR => "Erreur", + E_WARNING => "Alerte", + E_PARSE => "Error d'analyse", + E_NOTICE => "Note", + E_CORE_ERROR => "Core Error", + E_CORE_WARNING => "Core Warning", + E_COMPILE_ERROR => "Compile Error", + E_COMPILE_WARNING => "Compile Warning", + E_USER_ERROR => "Erreur spécifique", + E_USER_WARNING => "Alerte spécifique", + E_USER_NOTICE => "Note spécifique", + E_STRICT => "Runtime Notice" ); // Les niveaux qui seront enregistrés $user_errors = array(E_USER_ERROR, E_USER_WARNING, E_USER_NOTICE); http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/ini.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-fr/reference/errorfunc/ini.xml diff -u phpdoc-fr/reference/errorfunc/ini.xml:1.10 phpdoc-fr/reference/errorfunc/ini.xml:1.11 --- phpdoc-fr/reference/errorfunc/ini.xml:1.10 Wed Feb 25 07:35:33 2004 +++ phpdoc-fr/reference/errorfunc/ini.xml Thu Apr 29 09:51:11 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.21 Maintainer: yannick Status: ready --> <section id="errorfunc.configuration"> &reftitle.runtime; &extension.runtime; @@ -14,7 +14,7 @@ <tbody> <row> <entry>error_reporting</entry> - <entry>E_ALL &amp; ~E_NOTICE &amp; ~E_STRICT</entry> + <entry>E_ALL &amp; ~E_NOTICE</entry> <entry>PHP_INI_ALL</entry> </row> <row> @@ -50,7 +50,7 @@ <row> <entry>report_memleaks</entry> <entry>"1"</entry> - <entry>PHP_INI_SYSTEM</entry> + <entry>PHP_INI_ALL</entry> </row> <row> <entry>track_errors</entry> @@ -64,12 +64,12 @@ </row> <row> <entry>docref_root</entry> - <entry>"http://www.php.net/"</entry> + <entry>""</entry> <entry>PHP_INI_ALL</entry> </row> <row> <entry>docref_ext</entry> - <entry>".html"</entry> + <entry>""</entry> <entry>PHP_INI_ALL</entry> </row> <row> @@ -119,18 +119,11 @@ <link linkend="ini.display-errors">display_errors</link>. </para> <para> - En PHP 4, la configuration par défaut est + En &php; 4 et &php; 5, la configuration par défaut est <constant>E_ALL</constant> &amp; ~<constant>E_NOTICE</constant>. Elle montre toutes les erreurs, sauf les <constant>E_NOTICE</constant>. Il est recommandé de les afficher durant le développement. </para> - <para> - En PHP 5, la configuration par défaut est - <constant>E_ALL</constant> &amp; ~<constant>E_NOTICE</constant> &amp; - ~<constant>E_STRICT</constant>. Elle montre toutes les erreurs, sauf - les <constant>E_NOTICE</constant> et les <constant>E_STRICT</constant>. - Il est recommandé de les afficher durant le développement. - </para> <note> <para>Activer le rapport d'erreur de niveau <constant>E_NOTICE</constant> durant le développement a des avantages. En terme de débogage, les message @@ -145,6 +138,15 @@ </para> </note> <para> + En &php; 5, un nouveau niveau d'erreur nommé <constant>E_STRICT</constant> + est disponible. Comme <constant>E_STRICT</constant> n'est pas inclu sans + <constant>E_ALL</constant>, vous devez explicitement activer ce niveau d'erreur. + Activer <constant>E_STRICT</constant> pendant le développement peut être + bénéfique. Les messages STRICT vous aideront à utiliser la dernière et meilleure + suggestion de méthode de codage, par exemple, vous alertera de l'utilisation + de fonctions non recommandées. + </para> + <para> En PHP 3, la configuration par défaut est <literal>(E_ERROR | E_WARNING | E_PARSE)</literal>, ce qui correspond à la même configuration qu'en &php; 4. Notez toutefois que @@ -163,8 +165,14 @@ <listitem> <para> Cette directive détermine si les erreurs doivent être - affichées à l'écran au format HTML ou non. + affichées à l'écran ou non. </para> + <note> + <para> + C'est une directive nécessaire en développement mais qui ne doit jamais être utilisée + sur un système en production. (e.g. systèmes connectés à Internet). + </para> + </note> </listitem> </varlistentry> @@ -318,6 +326,13 @@ La plupart du temps, vous utilisez l'option docref_root avec un slash a la fin ('/'). Mais ce n'est pas obligatoire, comme le montre le second exemple ci-dessus. </para> + <note> + <para> + Cette directive est destiné à vous aider dans votre développement en rendant + facile la consultation de la description d'une fonction. Ne jamais l'utiliser sur un + système de production (e.g. système connecté à Internet). + </para> + </note> </listitem> </varlistentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/reference.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/errorfunc/reference.xml diff -u phpdoc-fr/reference/errorfunc/reference.xml:1.6 phpdoc-fr/reference/errorfunc/reference.xml:1.7 --- phpdoc-fr/reference/errorfunc/reference.xml:1.6 Wed Feb 25 07:35:33 2004 +++ phpdoc-fr/reference/errorfunc/reference.xml Thu Apr 29 09:51:11 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <reference id="ref.errorfunc"> <title>Gestion des erreurs</title> <titleabbrev>Gestion des erreurs</titleabbrev>
« previous php.doc.fr (#2370) next »