Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions language/control-structures/require-once.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ffbe6525350c91d58e1d5b7a52c46c911035c8e0 Maintainer: lacatoire Status: ready -->

<sect1 xml:id="function.require-once" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>require_once</title>
<?phpdoc print-version-for="require_once"?>
<para>
L'espressione <literal>require_once</literal> è identica a
<function>require</function> tranne che PHP verificherà se il file è già
stato incluso, e in tal caso non lo includerà (richiederà) di nuovo.
</para>
<para>
Consultare la documentazione di <function>include_once</function> per informazioni
sul comportamento di <literal>_once</literal> e su come differisce
dalle versioni senza <literal>_once</literal>.
</para>

</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
-->
40 changes: 40 additions & 0 deletions language/control-structures/require.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 30c0106d51ac2786b81b27709ca88f1daf07e716 Maintainer: lacatoire Status: ready -->

<sect1 xml:id="function.require" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>require</title>
<?phpdoc print-version-for="require"?>

<para>
<literal>require</literal> è identico a <function>include</function>
tranne che in caso di errore produce anche un'eccezione <classname>Error</classname>
(un errore di livello <constant>E_COMPILE_ERROR</constant> prima di
PHP 8.0.0), mentre <function>include</function> produce solo un avviso
(errore di livello <constant>E_WARNING</constant>).
</para>
<para>
Consultare la documentazione di <function>include</function> per il funzionamento.
</para>

</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
-->
44 changes: 44 additions & 0 deletions language/types/mixed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 161dde4fe721309398dd324edbf02aec409f127b Maintainer: lacatoire Status: ready -->
<sect1 xml:id="language.types.mixed">
<title>Mixed</title>

<para>
Il tipo <type>mixed</type> accetta qualsiasi valore. È equivalente al
<link linkend="language.types.type-system.composite.union">tipo union</link>
<!-- Need to improve rendering of free-standing type elements in PhD
<type class="union">
<type>object</type><type>resource</type><type>array</type><type>string</type>
<type>int</type><type>float</type><type>bool</type><type>null</type>
</type>.
-->
<literal>object|resource|array|string|float|int|bool|null</literal>.
Disponibile a partire da PHP 8.0.0.
</para>

<para>
<type>mixed</type> è, nel gergo della teoria dei tipi, il tipo top.
Ciò significa che ogni altro tipo è un suo sottotipo.
</para>

</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
-->
40 changes: 40 additions & 0 deletions language/types/never.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 161dde4fe721309398dd324edbf02aec409f127b Maintainer: lacatoire Status: ready -->
<sect1 xml:id="language.types.never">
<title>Never</title>

<para>
<type>never</type> è un tipo utilizzabile solo come tipo di ritorno, che indica
che la funzione non termina. Ciò significa che chiama <function>exit</function>,
lancia un'eccezione, oppure è un ciclo infinito.
Pertanto, non può far parte di una dichiarazione di
<link linkend="language.types.type-system.composite.union">tipo union</link>.
Disponibile a partire da PHP 8.1.0.
</para>
<para>
<type>never</type> è, nel gergo della teoria dei tipi, il tipo bottom.
Ciò significa che è il sottotipo di ogni altro tipo e può sostituire qualsiasi
altro tipo di ritorno durante l'ereditarietà.
</para>

</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
-->
41 changes: 41 additions & 0 deletions language/types/void.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 161dde4fe721309398dd324edbf02aec409f127b Maintainer: lacatoire Status: ready -->
<sect1 xml:id="language.types.void">
<title>Void</title>

<para>
<type>void</type> è una dichiarazione di tipo utilizzabile solo come tipo di ritorno,
che indica che la funzione non restituisce un valore, ma può comunque terminare.
Pertanto, non può far parte di una dichiarazione di
<link linkend="language.types.type-system.composite.union">tipo union</link>.
Disponibile a partire da PHP 7.1.0.
</para>

<note>
<simpara>
Anche se una funzione ha un tipo di ritorno <type>void</type>,
restituirà comunque un valore, che sarà sempre &null;.
</simpara>
</note>

</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
-->