[PHP-DOC] cvs: phpdoc /it/features error-handling.xml From: Luca Perugini (l.perugini <email protected>)
Date: 07/30/00

perugini Sun Jul 30 17:38:22 2000 EDT

  Modified files:
    /phpdoc/it/features error-handling.xml
  Log:
  Translated by Marco De Nittis <denittis <email protected>>
  
  
Index: phpdoc/it/features/error-handling.xml
diff -u phpdoc/it/features/error-handling.xml:1.2 phpdoc/it/features/error-handling.xml:1.3
--- phpdoc/it/features/error-handling.xml:1.2 Sun Jul 30 17:37:36 2000
+++ phpdoc/it/features/error-handling.xml Sun Jul 30 17:38:22 2000
@@ -1,158 +1,154 @@
-<chapter id="features.error-handling">
- <title>Error handling</title>
-
- <para>
- There are several types of errors and warnings in PHP. They are:
-
- <table>
- <title>PHP error types</title>
- <tgroup cols="4">
- <thead>
- <row>
- <entry>value</entry>
- <entry>symbolic</entry>
- <entry>description</entry>
- <entry>note</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>1</entry>
- <entry>E_ERROR</entry>
- <entry>fatal run-time errors</entry>
- <entry></entry>
- </row>
- <row>
- <entry>2</entry>
- <entry>E_WARNING</entry>
- <entry>run-time warnings (non fatal errors)</entry>
- <entry></entry>
- </row>
- <row>
- <entry>4</entry>
- <entry>E_PARSE</entry>
- <entry>compile-time parse errors</entry>
- <entry></entry>
- </row>
- <row>
- <entry>8</entry>
- <entry>E_NOTICE </entry>
- <entry>
- run-time notices (less serious than warnings)
- </entry>
- <entry></entry>
- </row>
- <row>
- <entry>16</entry>
- <entry>E_CORE_ERROR</entry>
- <entry>fatal errors that occur during PHP's initial startup</entry>
- <entry>PHP 4 only</entry>
- </row>
- <row>
- <entry>32</entry>
- <entry>E_CORE_WARNING</entry>
- <entry>warnings (non fatal errors) that occur during PHP's initial startup</entry>
- <entry>PHP 4 only</entry>
- </row>
- <row>
- <entry>64</entry>
- <entry>E_COMPILE_ERROR</entry>
- <entry>fatal compile-time errors</entry>
- <entry>PHP 4 only</entry>
- </row>
- <row>
- <entry>128</entry>
- <entry>E_COMPILE_WARNING</entry>
- <entry>ompile-time warnings (non fatal errors)</entry>
- <entry>PHP 4 only</entry>
- </row>
- <row>
- <entry>256</entry>
- <entry>E_USER_ERROR</entry>
- <entry>user-generated error message</entry>
- <entry>PHP 4 only</entry>
- </row>
- <row>
- <entry>512</entry>
- <entry>E_USER_WARNING</entry>
- <entry>user-generated warning message</entry>
- <entry>PHP 4 only</entry>
- </row>
- <row>
- <entry>1024</entry>
- <entry>E_USER_NOTICE </entry>
- <entry>user-generated notice message</entry>
- <entry>PHP 4 only</entry>
- </row>
- <row>
- <entry></entry>
- <entry>E_ALL</entry>
- <entry>all of the above</entry>
- <entry>PHP 4 only</entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </para>
-
- <para>
- The above values (either numerical or sombolic) are used to build up a
- bitmask that specifies which errors to report. You can use the bitwise
- operators '|','&amp;' and '~' to combine theese values or mask out certain
- types of errors. The default settings that will report anything but notice
- messages are <literal>E_ALL & ~E_NOTICE</literal> for PHP4 and 7 for PHP 3
- (PHP 3 does not support the symbolic constants).
- </para>
-
- <para>
- The settings can be changed in the ini file with the error_reporting
- directive. It can also be set in your Apache httpd.conf file with
- the php_error_reporting (php3_error_reporting for PHP 3)
- directive or lastly it may be set at runtime within a script using
- the <function>error_reporting</function> function.
- </para>
-
- <warning>
- <para>
- When upgrading code or servers from PHP 3 to PHP 4 you should check
- theese settings and calls to <function>error_reporting</function> or
- you might disable reporting the new error types, especially E_COMPILE_ERROR.
- This may lead to empty documents without any feedback of what happened
- or where to look for the problem.
- </para>
- </warning>
-
- <para>
- All <link linkend="language.expressions">PHP expressions</link> can also be called
- with the "@" prefix, which turns off error reporting for that particular
- expression. If an error occurred during such an expression and the
- <link linkend="ini.track-errors">track_errors</link> feature
- is enabled, you can find the error message in the global variable
- $php_errormsg.
- </para>
-
- <warning>
- <para>
- Currently the "@" prefix will even disable error reporting for critical
- errors that will terminate script execution.
- </para>
- </warning>
-
- </chapter>
-
-<!-- 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:
--->
+<chapter id="features.error-handling">
+ <title>Gestione degli errori</title>
+
+ <para>
+ In PHP sono presenti diversi tipi di errori e avvertimenti (warning):
+
+ <table>
+ <title>PHP - Tipi di errore</title>
+ <tgroup cols="4">
+ <thead>
+ <row>
+ <entry>valore</entry>
+ <entry>simbolo</entry>
+ <entry>descrizione</entry>
+ <entry>note</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>1</entry>
+ <entry>E_ERROR</entry>
+ <entry>Errore run-time fatale</entry>
+ <entry></entry>
+ </row>
+ <row>
+ <entry>2</entry>
+ <entry>E_WARNING</entry>
+ <entry>Warning run-time(errore non fatale)</entry>
+ <entry></entry>
+ </row>
+ <row>
+ <entry>4</entry>
+ <entry>E_PARSE</entry>
+ <entry>Errore nel parsing in compilazione</entry>
+ <entry></entry>
+ </row>
+ <row>
+ <entry>8</entry>
+ <entry>E_NOTICE </entry>
+ <entry>
+ Notifiche run-time(meno seri dei warning)
+ </entry>
+ <entry></entry>
+ </row>
+ <row>
+ <entry>16</entry>
+ <entry>E_CORE_ERROR</entry>
+ <entry>Errore fatale nella fase di startup inizale di PHP</entry>
+ <entry>Solo PHP 4</entry>
+ </row>
+ <row>
+ <entry>32</entry>
+ <entry>E_CORE_WARNING</entry>
+ <entry>Warning (errore non fatale) nella fase di startup inizale di PHP</entry>
+ <entry>Solo PHP 4</entry>
+ </row>
+ <row>
+ <entry>64</entry>
+ <entry>E_COMPILE_ERROR</entry>
+ <entry>Errore fatale in fase di compilazione</entry>
+ <entry>Solo PHP 4</entry>
+ </row>
+ <row>
+ <entry>128</entry>
+ <entry>E_COMPILE_WARNING</entry>
+ <entry>Warning (errore non fatale) in fase di compilazione</entry>
+ <entry>Solo PHP 4</entry>
+ </row>
+ <row>
+ <entry>256</entry>
+ <entry>E_USER_ERROR</entry>
+ <entry>Messagio di errore generato dall'utente</entry>
+ <entry>Solo PHP 4</entry>
+ </row>
+ <row>
+ <entry>512</entry>
+ <entry>E_USER_WARNING</entry>
+ <entry>Messaggio di avvertimento (warning) generato dall'utente</entry>
+ <entry>Solo PHP 4</entry>
+ </row>
+ <row>
+ <entry>1024</entry>
+ <entry>E_USER_NOTICE </entry>
+ <entry>Messagio di notifica generato dall'utente</entry>
+ <entry>Solo PHP 4</entry>
+ </row>
+ <row>
+ <entry></entry>
+ <entry>E_ALL</entry>
+ <entry>Tutti i precedenti</entry>
+ <entry>Solo PHP 4</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </para>
+ <para>
+ I valori presenti nella tabella (sia numerici che simbolici) sono utilizzati
+ per creare delle bitmask per specificare quali errori da cercare. Si possono
+ usare gli operatori sui bit '|','&amp;' e '~' per combinare questi valori e
+ mascherare certi tipi di errori. Le configurazioni predefinite per effettuare
+ il report di tutti gli errori eccetto le notifiche sono <literal>E_ALL & ~E_NOTICE</literal>
+ per PHP4 e 7 per PHP3 (PHP3 non supporta le costanti simboliche).
+ </para>
+ <para>
+ Le configurazioni possono essere cambiate nel file ini con la direttiva
+ error_reporting. Si pu&ograve; anche utilizzare il file di configurazione di
+ Apache httpd.conf con la direttiva php_error_reporting (php3_error_reporting
+ per PHP 3) oppure ancora in fase di esecuzione di uno script con la
+ funzione <function>error_reporting</function>.
+ </para>
+ <warning>
+ <para>
+ Quando si esegue un'upgrade del codice o dei server da PHP3 a PHP4 &egrave;
+ necessario controllare questi settaggi e le chiamate a <function>error_reporting</function>
+ oppure potrebbe disabilitarsi il report dei nuovi tipi di errore, specialmente
+ E_COMPILE_ERROR. Questo potrebbe portare a documenti vuoti senza alcun
+ feedback sulle cause o dove guardare per trovare il problema.
+ </para>
+ </warning>
+
+ <para>
+ Tutte le <link linkend="language.expressions">espressioni PHP</link> possono anche
+ venir chiamate con il prefisso "@", che disabilita il report degli errori per quella
+ particolare espressione. Se capita un errore in una di queste espressioni e l'opzione
+ <link linkend="ini.track-errors">track_errors</link> è attivata, si pu&ograve; trovare
+ il messaggio d'errore nella variabile globale $php_errormsg.
+ </para>
+
+ <warning>
+ <para>
+ Attualmente il prefisso "@" disabilita il report anche per gli errori
+ critici che terminano l'esecuzione dello script.
+ </para>
+ </warning>
+
+ </chapter>
+
+<!-- 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:
+-->