Contributions are ready for review
| From: | doc-it at lists dot php dot net | Date: | Mon, 10 Mar 2014 12:00:02 +0000 |
| Subject: | Contributions are ready for review | ||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-1662@lists.php.net to get a copy of this message | ||
Hello PHP IT Documentation team,
There are contributions within the online editor queue for this language.
Please review, then commit or delete these patches.
Patches for review :
-----------------------
New file: it/reference/array/constants.xml
By: Federico Reghenzani on 2014-03-07 07:02:01
===================================================================
--- it/reference/array/constants.xml
+++ it/reference/array/constants.xml
@@ -0,0 +1,278 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: $ -->
+<!-- EN-Revision: 324055 Maintainer: Federico Reghenzani Status: ready -->
+<!-- Reviewed: no -->
+
+<appendix xml:id="array.constants" xmlns="http://docbook.org/ns/docbook">
+ &reftitle.constants;
+ &extension.constants.core;
+ <para>
+ <variablelist>
+ <varlistentry xml:id="constant.case-lower">
+ <term>
+ <constant>CASE_LOWER</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+ <constant>CASE_LOWER</constant> è usata con
+ <function>array_change_key_case</function> per convertire le chiavi di
+ un array a caratteri minuscoli. E' anche il valore di default per
+ <function>array_change_key_case</function>.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry xml:id="constant.case-upper">
+ <term>
+ <constant>CASE_UPPER</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+ <constant>CASE_UPPER</constant> è usata con
+ <function>array_change_key_case</function> per convertire le chiavi di
+ un array a caratteri maiuscoli.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+
+ <para> Flag per l'ordinamento:
+ <variablelist>
+ <varlistentry xml:id="constant.sort-asc">
+ <term>
+ <constant>SORT_ASC</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+ <constant>SORT_ASC</constant> è usata con
+ <function>array_multisort</function> per ordinare in modo crescente.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry xml:id="constant.sort-desc">
+ <term>
+ <constant>SORT_DESC</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+ <constant>SORT_DESC</constant> è usata con
+ <function>array_multisort</function>per ordinare in modo decrescente.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+
+ <para> Flag per il tipo dell'ordinamento:
+ <variablelist>
+ <varlistentry xml:id="constant.sort-regular">
+ <term>
+ <constant>SORT_REGULAR</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+ <constant>SORT_REGULAR</constant> è usata per effettuare un normale confronto.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry xml:id="constant.sort-numeric">
+ <term>
+ <constant>SORT_NUMERIC</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+ <constant>SORT_NUMERIC</constant> è usata per effettuare in modo numerico.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry xml:id="constant.sort-string">
+ <term>
+ <constant>SORT_STRING</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+ <constant>SORT_STRING</constant> è usata per effettuare un confronto tra stringhe.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry xml:id="constant.sort-locale-string">
+ <term>
+ <constant>SORT_LOCALE_STRING</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+ <constant>SORT_LOCALE_STRING</constant> è usata per effettuare un confronto
+ tra stringhe basate sul locale corrente. Aggiunta in PHP 4.4.0 e 5.0.2.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry xml:id="constant.sort-natural">
+ <term>
+ <constant>SORT_NATURAL</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+ <constant>SORT_NATURAL</constant> è usata per effettuare un confronto tra stringhe
+ usando un "confronto naturale" come <function>natsort</function>.
Aggiunta in PHP 5.4.0.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry xml:id="constant.sort-flag-case">
+ <term>
+ <constant>SORT_FLAG_CASE</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+ <constant>SORT_FLAG_CASE</constant> può essere combinata
+ (OR bit a bit) con
+ <constant>SORT_STRING</constant> o
+ <constant>SORT_NATURAL</constant> per ordinare stringhe in modo
case-insensitively. Aggiunta in PHP 5.4.0.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ <variablelist>
+ <varlistentry xml:id="constant.count-normal">
+ <term>
+ <constant>COUNT_NORMAL</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry xml:id="constant.count-recursive">
+ <term>
+ <constant>COUNT_RECURSIVE</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry xml:id="constant.extr-overwrite">
+ <term>
+ <constant>EXTR_OVERWRITE</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry xml:id="constant.extr-skip">
+ <term>
+ <constant>EXTR_SKIP</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry xml:id="constant.extr-prefix-same">
+ <term>
+ <constant>EXTR_PREFIX_SAME</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry xml:id="constant.extr-prefix-all">
+ <term>
+ <constant>EXTR_PREFIX_ALL</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry xml:id="constant.extr-prefix-invalid">
+ <term>
+ <constant>EXTR_PREFIX_INVALID</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry xml:id="constant.extr-prefix-if-exists">
+ <term>
+ <constant>EXTR_PREFIX_IF_EXISTS</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry xml:id="constant.extr-if-exists">
+ <term>
+ <constant>EXTR_IF_EXISTS</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry xml:id="constant.extr-refs">
+ <term>
+ <constant>EXTR_REFS</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+
+ </simpara>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+</appendix>
+
+<!-- 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
+-->
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=52757
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=52757
------------------------------------------------------------------
New file: it/reference/array/reference.xml
By: Federico Reghenzani on 2014-03-07 07:02:26
===================================================================
--- it/reference/array/reference.xml
+++ it/reference/array/reference.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: $ -->
+<!-- EN-Revision: 297028 Maintainer: Federico Reghenzani Status: ready -->
+<!-- Reviewed: no -->
+
+<reference xml:id="ref.array" xmlns="http://docbook.org/ns/docbook">
+ <title>Array &Functions;</title>
+ <partintro xml:id="array.seealso">
+ &reftitle.seealso;
+ <para>
+ Vedere anche le funzioni <function>is_array</function>,
<function>explode</function>,
+ <function>implode</function>, <function>split</function>,
+ <function>preg_split</function> e <function>unset</function>.
+ </para>
+ </partintro>
+
+ &reference.array.entities.functions;
+
+</reference>
+
+<!-- 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
+-->
+
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=52758
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=52758
------------------------------------------------------------------
New file: it/reference/array/setup.xml
By: Federico Reghenzani on 2014-03-07 07:02:32
===================================================================
--- it/reference/array/setup.xml
+++ it/reference/array/setup.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: $ -->
+<!-- EN-Revision: 297028 Maintainer: Federico Reghenzani Status: ready -->
+<!-- Reviewed: no -->
+
+<chapter xml:id="array.setup">
+ &reftitle.setup;
+
+ <section xml:id="array.requirements">
+ &reftitle.required;
+ &no.requirement;
+ </section>
+
+ <section xml:id="array.installation">
+ &reftitle.install;
+ &no.install;
+ </section>
+
+ <section xml:id="array.configuration">
+ &reftitle.runtime;
+ &no.config;
+ </section>
+
+ <section xml:id="array.resources">
+ &reftitle.resources;
+ &no.resource;
+ </section>
+
+</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
+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
+-->
+
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=52759
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=52759
------------------------------------------------------------------
New file: it/reference/array/sorting.xml
By: Federico Reghenzani on 2014-03-07 07:14:15
===================================================================
--- it/reference/array/sorting.xml
+++ it/reference/array/sorting.xml
@@ -0,0 +1,171 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: $ -->
+<!-- EN-Revision: 327704 Maintainer: Federico Reghenzani Status: ready -->
+<!-- Reviewed: no -->
+
+<chapter xml:id="array.sorting" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
+ <title>Sorting Arrays</title>
+ <para>
+ PHP ha molte funzioni che riguardano l'ordinamento di array e questo
+ documento è un riassunto di esse.
+ </para>
+ <para>
+ Le principali differenze sono:
+ </para>
+ <para>
+ <simplelist>
+ <member>
+ Alcuni ordinamenti si basano sulla chiave dell'<type>array</type> altri sui
valori: <literal>$array['chiave'] = 'valore';</literal>
+ </member>
+ <member>
+ Il mantenimento della correlazione tra chiavi e valore
+ dopo l'ordinamento oppure il reset delle chiavi in modo
+ numerico (0,1,2 ...)
+ </member>
+ <member>
+ L'ordine: alfabetico, dal basso all'altro (ascending), dall'alto
+ al basso (descending), numerico, naturale, casuale o definito dall'utente
+ </member>
+ <member>
+ Nota: tutte queste funzioni di ordinamento agiscono direttamente
+ sull'array stesso, non ritornano un nuovo vettore ordinato.
+ </member>
+ <member>
+ Se qualsiasi di queste funzioni di ordinamento valuta due membri uguali
+ (secondo il criterio scelto) l'ordinamento tra i due non può essere
+ considerato definibile a priori.
+ </member>
+ </simplelist>
+ </para>
+ <para>
+ <table>
+ <title>Funzioni di ordinamento</title>
+ <tgroup cols="5">
+ <thead>
+ <row>
+ <entry>Nome funzione</entry>
+ <entry>Ordina per</entry>
+ <entry>Mantenimento associazione chiave</entry>
+ <entry>Ordine</entry>
+ <entry>Funzioni correlate</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><function>array_multisort</function></entry>
+ <entry>valore</entry>
+ <entry>associativo si, numerico no</entry>
+ <entry>primo vettore o definito dall'utente</entry>
+ <entry><function>array_walk</function></entry>
+ </row>
+ <row>
+ <entry><function>asort</function></entry>
+ <entry>valore</entry>
+ <entry>si</entry>
+ <entry>dal basso all'alto</entry>
+ <entry><function>arsort</function></entry>
+ </row>
+ <row>
+ <entry><function>arsort</function></entry>
+ <entry>valore</entry>
+ <entry>si</entry>
+ <entry>dall'alto al basso</entry>
+ <entry><function>asort</function></entry>
+ </row>
+ <row>
+ <entry><function>krsort</function></entry>
+ <entry>chiave</entry>
+ <entry>si</entry>
+ <entry>dall'alto al basso</entry>
+ <entry><function>ksort</function></entry>
+ </row>
+ <row>
+ <entry><function>ksort</function></entry>
+ <entry>chiave</entry>
+ <entry>si</entry>
+ <entry>dal basso all'alto</entry>
+ <entry><function>asort</function></entry>
+ </row>
+ <row>
+ <entry><function>natcasesort</function></entry>
+ <entry>valore</entry>
+ <entry>si</entry>
+ <entry>naturale, case-insensitive</entry>
+ <entry><function>natsort</function></entry>
+ </row>
+ <row>
+ <entry><function>natsort</function></entry>
+ <entry>valore</entry>
+ <entry>si</entry>
+ <entry>naturale</entry>
+ <entry><function>natcasesort</function></entry>
+ </row>
+ <row>
+ <entry><function>rsort</function></entry>
+ <entry>valore</entry>
+ <entry>no</entry>
+ <entry>dall'alto al basso</entry>
+ <entry><function>sort</function></entry>
+ </row>
+ <row>
+ <entry><function>shuffle</function></entry>
+ <entry>valore</entry>
+ <entry>no</entry>
+ <entry>casuale</entry>
+ <entry><function>array_rand</function></entry>
+ </row>
+ <row>
+ <entry><function>sort</function></entry>
+ <entry>valore</entry>
+ <entry>no</entry>
+ <entry>dal basso all'alto</entry>
+ <entry><function>rsort</function></entry>
+ </row>
+ <row>
+ <entry><function>uasort</function></entry>
+ <entry>valore</entry>
+ <entry>si</entry>
+ <entry>definito dall'utente</entry>
+ <entry><function>uksort</function></entry>
+ </row>
+ <row>
+ <entry><function>uksort</function></entry>
+ <entry>chiave</entry>
+ <entry>si</entry>
+ <entry>definito dall'utente</entry>
+ <entry><function>uasort</function></entry>
+ </row>
+ <row>
+ <entry><function>usort</function></entry>
+ <entry>valore</entry>
+ <entry>no</entry>
+ <entry>definito dall'utente</entry>
+ <entry><function>uasort</function></entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </para>
+</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
+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
+-->
+
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=52760
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=52760
------------------------------------------------------------------
Modified: it/chapters/tutorial.xml
By: anonymous on 2013-09-12 07:14:57
===================================================================
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=50019
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=50019
------------------------------------------------------------------
Modified: it/reference/errorfunc/functions/set-error-handler.xml
By: Federico Reghenzani on 2014-03-07 06:49:55
===================================================================
--- it/reference/errorfunc/functions/set-error-handler.xml
+++ it/reference/errorfunc/functions/set-error-handler.xml
@@ -10,29 +10,209 @@
Configura una funzione di gestione dell'errore definita dall'utente.
</refpurpose>
</refnamediv>
- <refsect1>
- <title>Descrizione</title>
- <methodsynopsis>
- <type>string</type><methodname>set_error_handler</methodname>
-
<methodparam><type>string</type><parameter>error_handler</parameter></methodparam>
- </methodsynopsis>
- <para>
- Configura una funzione utente (<parameter>error_handler</parameter> per
- gestire gli errori in uno script. Restituisce, se esistente, il precedente
- gestore degli errori, o &false; in caso di errore. Questa funzione può
- essere utilizzata per definire un sistema personalizzato di gestione degli
- errori durante l'esecuzione, per esempio in applicazioni dove sia
- necessario svuotare dati o file in caso di un determinato errore
- critico, o quando sia necessario, in determinate condizioni, attivare
- un errore (con <function>trigger_error</function>)
- </para>
- <para>
- La funzione utente richiede 2 parametri: il codice errore e una stringa
- descrittiva dell'errore. Da PHP 4.0.2, è possibile opzionalmente fornire
- altri 3 parametri aggiuntivi: il nome del file, il numero di riga e il
- contesto dove è avvenuto l'errore (un array che punto alla tabella
- dei simboli attiva nel punto in cui è avvenuto l'errore).
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>mixed</type><methodname>set_error_handler</methodname>
+
<methodparam><type>callable</type><parameter>error_handler</parameter></methodparam>
+ <methodparam
choice="opt"><type>int</type><parameter>error_types</parameter><initializer>E_ALL
| E_STRICT</initializer></methodparam>
+ </methodsynopsis>
+ <para>
+ Configura una funzione utente (<parameter>error_handler</parameter>) per
+ gestire gli errori in uno script.
+ </para>
+ <para>
+ Questa funzione può essere utilizzata per definire un sistema
+ personalizzato di gestione degli errori durante l'esecuzione, per esempio
+ in applicazioni dove sia necessario svuotare dati o file in caso di un
+ determinato errore critico, o quando sia necessario, in determinate
+ condizioni, attivare un errore (con <function>trigger_error</function>)
+ </para>
+ <para>
+ E' importante ricordare che il gestore degli errori standard di PHP viene
+ completamente saltato. La configurazione di <link
linkend="ini.error-reporting">error_reporting</link>
+ non avrà effetto e il vostro gestore di errore sarà richiamato senza considerarla - in ogni
+ caso sarà possibile leggere il valore corrente di
<function>error_reporting</function>
+ ed agire di conseguenza. E' di particolare rilevanza il fatto che questo
+ valore sarà 0 se la riga che causa l'errore viene precedura dall'
+ <link linkend="language.operators.errorcontrol">operatore di controllo errore
@</link>.
+ </para>
+ <para>
+ Notare anche che è vostra responsabilità definire <function>die</function>
+ se necessario. Se la funzione di gestione dell'errore ritorna, lo script
+ continerà l'esecuzione con la riga seguente a quella che ha causato
+ l'errore.
+ </para>
+ <para>
+ Il seguenti tipi di errori non saranno gestiti dalla funzione definita dall'utente:
+ <constant>E_ERROR</constant>, <constant>E_PARSE</constant>,
+ <constant>E_CORE_ERROR</constant>,
<constant>E_CORE_WARNING</constant>,
+ <constant>E_COMPILE_ERROR</constant>,
+ <constant>E_COMPILE_WARNING</constant>, e buona parte degli
+ <constant>E_STRICT</constant>.
+ </para>
+ <para>
+ Gli errori che occorrono prima che lo script sia in esecuzione (ad esempio
+ durante l'upload di file) la funzione definita dell'utente non può essere
+ chiamata perché non sarebbe ancora stata registrata.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>error_handler</parameter></term>
+ <listitem>
+ <para>
+ Una funzione di callback con la seguente struttura oppure &null; per
+ ripristinare il gestore di default.
+ </para>
+ <para>
+ <methodsynopsis>
+
<type>bool</type><methodname><replaceable>handler</replaceable></methodname>
+
<methodparam><type>int</type><parameter>errno</parameter></methodparam>
+
<methodparam><type>string</type><parameter>errstr</parameter></methodparam>
+ <methodparam
choice="opt"><type>string</type><parameter>errfile</parameter></methodparam>
+ <methodparam
choice="opt"><type>int</type><parameter>errline</parameter></methodparam>
+ <methodparam
choice="opt"><type>array</type><parameter>errcontext</parameter></methodparam>
+ </methodsynopsis>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>errno</parameter></term>
+ <listitem>
+ <simpara>
+ Il primo parametro, <parameter>errno</parameter>, contiene il livello
+ dell'errore come un intero.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>errstr</parameter></term>
+ <listitem>
+ <simpara>
+ Il secondo parametro, <parameter>errstr</parameter>, contiene il messaggio
+ di errore come stringa.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>errfile</parameter></term>
+ <listitem>
+ <simpara>
+ Il terzo parametro opzionale, <parameter>errfile</parameter>,
+ contiene il nome del file che ha generato l'errore, come stringa.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>errline</parameter></term>
+ <listitem>
+ <simpara>
+ Il quarto parametro opzionale, <parameter>errline</parameter>,
+ Contiene il numero di riga relativo al file che ha generato l'errore, come
intero.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>errcontext</parameter></term>
+ <listitem>
+ <simpara>
+ Il quinto parametro opzionale, <parameter>errcontext</parameter>,
+ che e' un array che punta alla tabella simboli al punto dove l'errore è
+ stato generato. In altre parole <parameter>errcontext</parameter>
conterrà un vettore di tutte le variabili
+ che esistono e sono visibili dove l'errore è avvenuto.
+ La funzione utente non dovrebbe mai modificare
<parameter>errcontext</parameter>.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ <para>
+ Se la funzione ritorna &false; allora viene eseguito il normale gestore degli errori.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>error_types</parameter></term>
+ <listitem>
+ <para>
+ Può essere usato per mascherare alcuni errori, allo stesso modo
+ di <link linkend="ini.error-reporting">error_reporting</link> che
controlla
+ quali errori mostrare. Se non viene specificato
+ <parameter>error_handler</parameter> rispecchierà le impostazioni di <link
+ linkend="ini.error-reporting">error_reporting</link>.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
</para>
+ </refsect1>
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Ritorna una stringa contenente l'eventuale precedente funzione degli errori.
+ Ritorna &null; se <parameter>error_handler</parameter> è &null; o in caso
di errore
+ (come un'invalida funzione di callback). Se il gestore precedente era un metodo di
+ classe, allora il valore ritornato sarà un array con due elementi: nome della classe
+ e nome del metodo.
+ </para>
+ </refsect1>
+
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>5.5.0</entry>
+ <entry>
+ <parameter>error_handler</parameter> ora accetta &null;.
+ </entry>
+ </row>
+ <row>
+ <entry>5.2.0</entry>
+ <entry>
+ <parameter>error_handler</parameter> deve ritornare &false; per
+ popolare <varname>$php_errormsg</varname>.
+ </entry>
+ </row>
+ <row>
+ <entry>5.0.0</entry>
+ <entry>
+ Il parametro <parameter>error_types</parameter> viene introdotto.
+ </entry>
+ </row>
+ <row>
+ <entry>4.3.0</entry>
+ <entry>
+ Al posto del nome della funzione, un vettore contenente il riferimento
+ all'oggetto e al nome del metodo può essere utilizzato in
+ <parameter>error_handler</parameter>.
+ </entry>
+ </row>
+ <row>
+ <entry>4.0.2</entry>
+ <entry>
+ Sono aggiunti tre parametri opzioni a <parameter>error_handler</parameter>:
+ nome del file, numero di riga e contesto.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
<para>
L'esempio sottostante mostra la gestione
delle eccezioni interne attivando gli errori e gestendoli tramite
@@ -159,28 +339,22 @@
</programlisting>
</informalexample>
</para>
- <para>
- E' importante ricordare che il gestore degli errori standard di PHP viene
- completamente saltato. La configurazione di <function>error_reporting</function>
non avrà effetto
- e il vostro gestore di errore sarà richiamato senza considerarla - in ogni
- caso sarà possibile leggere il valore corrente di
<function>error_reporting</function>
- ed agire di conseguenza. E' di particolare rilevanza il fatto che questo
- valore sarà 0 se la riga che causa l'errore viene precedura dall'
- <link linkend="language.operators.errorcontrol">operatore di controllo errore
@</link>.
- </para>
- <para>
- Notare anche che è vostra responsabilità definire <function>die</function>
- se necessario. Se la funzione di gestione dell'errore ritorna, lo script
- continerà l'esecuzione con la riga seguente a quella che ha causato
- l'errore.
- </para>
- <para>
- Vedere anche <function>error_reporting</function>,
- <function>restore_error_handler</function>,
- <function>trigger_error</function>, <function>user_error</function>
- </para>
</refsect1>
- </refentry>
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><classname>ErrorException</classname></member>
+ <member><function>error_reporting</function></member>
+ <member><function>restore_error_handler</function></member>
+ <member><function>trigger_error</function></member>
+ <member><link linkend="errorfunc.constants">error level
constants</link></member>
+ <member>&seealso.callback;</member>
+ </simplelist>
+ </para>
+ </refsect1>
+
+</refentry>
<!-- Keep this comment at the end of the file
Local variables:
=> Put this change into your patches : https://edit.php.net/?project=php&action=putIntoMyPatches&idDB=52756
=> Delete this change: https://edit.php.net/?project=php&action=deleteThisChange&idDB=52756
------------------------------------------------------------------
--
https://edit.php.net/
This email is send automatically by the Php Docbook Online Editor.