Skip to content

Commit 8399348

Browse files
committed
Sync more part of documentation with EN
1 parent 3f1a443 commit 8399348

File tree

27 files changed

+232
-219
lines changed

27 files changed

+232
-219
lines changed

language/context/parameters.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 5faa7a6747bca628b3bdcc9f93aec5603b65581f Maintainer: cucinato Status: ready -->
2+
<!-- EN-Revision: 8bc832a464e33122e8129f5a623bd845b69fa7e0 Maintainer: cucinato Status: ready -->
33

44
<refentry xml:id="context.params" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" annotations="verify_info:false" role="stream_context_option">
55
<refnamediv>
@@ -29,7 +29,8 @@
2929
Una funzione <type>callable</type> chiamata quando un evento si manifesta in uno stream.
3030
</para>
3131
<para>
32-
Vedere <function>stream_notification_callback</function> per maggiori informazioni.
32+
Vedere <link linkend="function.stream-notification-callback">
33+
stream_notification_callback</link> per maggiori informazioni.
3334
</para>
3435
</listitem>
3536
</varlistentry>

language/types/float.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: d494ffa4d9f83b60fe66972ec2c0cf0301513b4a Maintainer: pastore Status: ready -->
2+
<!-- EN-Revision: a1e3d629b4f01ee41bd38391cd5c6ae5ee894cb3 Maintainer: pastore Status: ready -->
33
<!-- CREDITS: SvenHolmgren -->
44
<sect1 xml:id="language.types.float" xmlns:xlink="http://www.w3.org/1999/xlink">
55
<title>Numeri floating point</title>
@@ -30,7 +30,7 @@ $d = 1_234.567; // a partire da PHP 7.4.0
3030
<programlisting>
3131
<![CDATA[
3232
LNUM [0-9]+(_[0-9]+)*
33-
DNUM ([0-9]*(_[0-9]+)*[\.]{LNUM}) | ({LNUM}[\.][0-9]*(_[0-9]+)*)
33+
DNUM ({LNUM}?"."{LNUM}) | ({LNUM}"."{LNUM}?)
3434
EXPONENT_DNUM (({LNUM} | {DNUM}) [eE][+-]? {LNUM})
3535
]]>
3636
</programlisting>

reference/dbase/functions/dbase-open.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: b95d28e6ec86e4a71e012737d36ebdc1cf009180 Maintainer: pastore Status: ready -->
2+
<!-- EN-Revision: 0545e305cf06937b14b3f0694d6e716c9881ffd7 Maintainer: pastore Status: ready -->
33
<!-- CREDITS: calandra, fernando -->
44
<refentry xml:id="function.dbase-open" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
@@ -77,7 +77,7 @@
7777
</thead>
7878
<tbody>
7979
<row>
80-
<entry>dbase 7.0.0</entry>
80+
<entry>PECL dbase 7.0.0</entry>
8181
<entry>
8282
Il valore restituito è ora una <type>resource</type> invece di un
8383
<type>int</type>.

reference/filesystem/functions/chgrp.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: dec1f8445ab2af7fbafef012fb7907ab2cd349b5 Maintainer: pastore Status: ready -->
2+
<!-- EN-Revision: 0c9c2dd669fe9395eaa73d487fbd160f9057429a Maintainer: pastore Status: ready -->
33
<!-- CREDITS: cortesi,fernando -->
4-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.chgrp">
4+
<refentry xml:id="function.chgrp" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
66
<refname>chgrp</refname>
77
<refpurpose>Cambia il gruppo del file</refpurpose>
@@ -12,7 +12,7 @@
1212
<methodsynopsis>
1313
<type>bool</type><methodname>chgrp</methodname>
1414
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
15-
<methodparam><type>mixed</type><parameter>group</parameter></methodparam>
15+
<methodparam><type class="union"><type>string</type><type>int</type></type><parameter>group</parameter></methodparam>
1616
</methodsynopsis>
1717
<para>
1818
Tenta di cambiare il gruppo del file <parameter>filename</parameter>
@@ -97,7 +97,6 @@ printf($format, $filename, date('r'), filegroup($filename));
9797
</refsect1>
9898

9999
</refentry>
100-
101100
<!-- Keep this comment at the end of the file
102101
Local variables:
103102
mode: sgml

reference/filesystem/functions/fread.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!-- EN-Revision: c4c0f7fc58a2d5d5f892bc03f2e9f5db7dbfc63a Maintainer: fernando Status: working -->
2+
<!-- EN-Revision: ae5b5761e220b355014d0845e060ea1669befe7a Maintainer: fernando Status: working -->
33
<refentry xml:id="function.fread" xmlns="http://docbook.org/ns/docbook">
44
<refnamediv>
55
<refname>fread</refname>
@@ -9,14 +9,14 @@
99
<refsect1 role="description">
1010
&reftitle.description;
1111
<methodsynopsis>
12-
<type>string</type><methodname>fread</methodname>
13-
<methodparam><type>resource</type><parameter>handle</parameter></methodparam>
12+
<type class="union"><type>string</type><type>false</type></type><methodname>fread</methodname>
13+
<methodparam><type>resource</type><parameter>stream</parameter></methodparam>
1414
<methodparam><type>int</type><parameter>length</parameter></methodparam>
1515
</methodsynopsis>
1616
<para>
1717
<function>fread</function> legge fino a
1818
<parameter>length</parameter> byte dal puntatore al file
19-
indicato da <parameter>handle</parameter>. La lettura finisce quando una
19+
indicato da <parameter>stream</parameter>. La lettura finisce quando una
2020
delle seguenti condizioni è raggiunta:
2121
<itemizedlist>
2222
<listitem>
@@ -52,7 +52,7 @@
5252
<para>
5353
<variablelist>
5454
<varlistentry>
55-
<term><parameter>handle</parameter></term>
55+
<term><parameter>stream</parameter></term>
5656
<listitem>
5757
&fs.file.pointer;
5858
</listitem>
@@ -132,7 +132,6 @@ fclose($handle);
132132
<programlisting role="php">
133133
<![CDATA[
134134
<?php
135-
// For PHP 5 and up
136135
$handle = fopen("http://www.example.com/", "rb");
137136
$contents = stream_get_contents($handle);
138137
fclose($handle);
@@ -192,13 +191,14 @@ fclose($handle);
192191
<member><function>fscanf</function></member>
193192
<member><function>file</function></member>
194193
<member><function>fpassthru</function></member>
194+
<member><function>fseek</function></member>
195195
<member><function>ftell</function></member>
196196
<member><function>rewind</function></member>
197+
<member><function>unpack</function></member>
197198
</simplelist>
198199
</para>
199200
</refsect1>
200201
</refentry>
201-
202202
<!-- Keep this comment at the end of the file
203203
Local variables:
204204
mode: sgml

reference/filesystem/functions/is-dir.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: dec1f8445ab2af7fbafef012fb7907ab2cd349b5 Maintainer: cucinato Status: ready -->
2+
<!-- EN-Revision: 871a231f4a1caa5fb258ae53b1bb7d1fb2a0f949 Maintainer: cucinato Status: ready -->
33
<!-- Credits: cortesi -->
44
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.is-dir">
55
<refnamediv>
@@ -47,6 +47,11 @@
4747
</para>
4848
</refsect1>
4949

50+
<refsect1 role="errors">
51+
&reftitle.errors;
52+
&fs.emits.warning.on.failure;
53+
</refsect1>
54+
5055
<refsect1 role="examples">
5156
&reftitle.examples;
5257
<para>
@@ -74,11 +79,6 @@ bool(true)
7479
</para>
7580
</refsect1>
7681

77-
<refsect1 role="errors">
78-
&reftitle.errors;
79-
&fs.emits.warning.on.failure;
80-
</refsect1>
81-
8282
<refsect1 role="notes">
8383
&reftitle.notes;
8484
&note.clearstatcache;

reference/filesystem/functions/move-uploaded-file.xml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: dec1f8445ab2af7fbafef012fb7907ab2cd349b5 Maintainer: pastore Status: ready -->
2+
<!-- EN-Revision: 0c9c2dd669fe9395eaa73d487fbd160f9057429a Maintainer: pastore Status: ready -->
33
<!-- CREDITS: cortesi -->
4-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.move-uploaded-file">
4+
<refentry xml:id="function.move-uploaded-file" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
66
<refname>move_uploaded_file</refname>
77
<refpurpose>Sposta un file caricato in una nuova posizione</refpurpose>
@@ -11,15 +11,15 @@
1111
&reftitle.description;
1212
<methodsynopsis>
1313
<type>bool</type><methodname>move_uploaded_file</methodname>
14-
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
15-
<methodparam><type>string</type><parameter>destination</parameter></methodparam>
14+
<methodparam><type>string</type><parameter>from</parameter></methodparam>
15+
<methodparam><type>string</type><parameter>to</parameter></methodparam>
1616
</methodsynopsis>
1717
<para>
1818
Questa funzione verifica che il file indicato da
19-
<parameter>filename</parameter> sia un file caricato correttamente (nel senso
19+
<parameter>from</parameter> sia un file caricato correttamente (nel senso
2020
che è stato caricato attraverso il meccanismo di caricamento HTTP POST di PHP). Se
2121
il file è valido, verrà spostato nel file dato da
22-
<parameter>destination</parameter>.
22+
<parameter>to</parameter>.
2323
</para>
2424
<para>
2525
Questo tipo di verifica è particolarmente importante se sussiste la possibilità
@@ -34,15 +34,15 @@
3434
<para>
3535
<variablelist>
3636
<varlistentry>
37-
<term><parameter>filename</parameter></term>
37+
<term><parameter>from</parameter></term>
3838
<listitem>
3939
<para>
4040
Il nome del file caricato.
4141
</para>
4242
</listitem>
4343
</varlistentry>
4444
<varlistentry>
45-
<term><parameter>destination</parameter></term>
45+
<term><parameter>to</parameter></term>
4646
<listitem>
4747
<para>
4848
La destinazione del file spostato.
@@ -59,13 +59,13 @@
5959
Restituisce &true; in caso di successo.
6060
</para>
6161
<para>
62-
Se <parameter>filename</parameter> non è un file caricato valido,
62+
Se <parameter>from</parameter> non è un file caricato valido,
6363
allora non verrà compiuta alcuna azione e
6464
<function>move_uploaded_file</function> restituirà
6565
&false;.
6666
</para>
6767
<para>
68-
Se <parameter>filename</parameter> è un file caricato valido, ma
68+
Se <parameter>from</parameter> è un file caricato valido, ma
6969
non può essere spostato per qualche ragione, non verrà compiuto alcunchè e
7070
<function>move_uploaded_file</function> restituirà
7171
&false;. In più verrà emesso un avviso.
@@ -104,8 +104,8 @@ foreach ($_FILES["pictures"]["error"] as $key => $error) {
104104
<function>move_uploaded_file</function> prende in considerazione
105105
<link linkend="ini.open-basedir">open_basedir</link>.
106106
Tuttavia, le restrizioni sono poste solo sul
107-
percorso definito da <parameter>destination</parameter> per consentire lo spostamento
108-
dei file caricati in cui <parameter>filename</parameter> potrebbe entrare in conflitto
107+
percorso definito da <parameter>to</parameter> per consentire lo spostamento
108+
dei file caricati in cui <parameter>from</parameter> potrebbe entrare in conflitto
109109
con tali restrizioni. <function>move_uploaded_file</function> garantisce
110110
la sicurezza di questa operazione consentendo lo spostamento solo dei file
111111
caricati tramite PHP.
@@ -129,7 +129,6 @@ foreach ($_FILES["pictures"]["error"] as $key => $error) {
129129
</para>
130130
</refsect1>
131131
</refentry>
132-
133132
<!-- Keep this comment at the end of the file
134133
Local variables:
135134
mode: sgml

reference/filesystem/functions/popen.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 5222a1c1ed96c34b5cfe00b2e5af451fcd587ef2 Maintainer: pastore Status: ready -->
2+
<!-- EN-Revision: 0c9c2dd669fe9395eaa73d487fbd160f9057429a Maintainer: pastore Status: ready -->
33
<!-- CREDITS: cortesi, fernando -->
4-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.popen">
4+
<refentry xml:id="function.popen" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
66
<refname>popen</refname>
77
<refpurpose>Apre un puntatore ad un file di processo</refpurpose>
@@ -10,7 +10,7 @@
1010
<refsect1 role="description">
1111
&reftitle.description;
1212
<methodsynopsis>
13-
<type>resource</type><methodname>popen</methodname>
13+
<type class="union"><type>resource</type><type>false</type></type><methodname>popen</methodname>
1414
<methodparam><type>string</type><parameter>command</parameter></methodparam>
1515
<methodparam><type>string</type><parameter>mode</parameter></methodparam>
1616
</methodsynopsis>
@@ -129,7 +129,6 @@ pclose($handle);
129129
</refsect1>
130130

131131
</refentry>
132-
133132
<!-- Keep this comment at the end of the file
134133
Local variables:
135134
mode: sgml

reference/filesystem/functions/rmdir.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: dec1f8445ab2af7fbafef012fb7907ab2cd349b5 Maintainer: pastore Status: ready -->
2+
<!-- EN-Revision: ea62fb83196997032641b50fe44420305466195e Maintainer: pastore Status: ready -->
33
<!-- CREDITS: cortesi -->
44
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.rmdir">
55
<refnamediv>
@@ -11,11 +11,11 @@
1111
&reftitle.description;
1212
<methodsynopsis>
1313
<type>bool</type><methodname>rmdir</methodname>
14-
<methodparam><type>string</type><parameter>dirname</parameter></methodparam>
15-
<methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam>
14+
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
15+
<methodparam choice="opt"><type class="union"><type>resource</type><type>null</type></type><parameter>context</parameter><initializer>&null;</initializer></methodparam>
1616
</methodsynopsis>
1717
<para>
18-
Tenta di rimuovere la directory denominata <parameter>dirname</parameter>.
18+
Tenta di rimuovere la directory denominata <parameter>directory</parameter>.
1919
La directory deve essere vuota e le relative autorizzazioni devono consentirlo.
2020
In caso di errore, verrà generato un errore di livello <constant>E_WARNING</constant>.
2121
</para>
@@ -26,7 +26,7 @@
2626
<para>
2727
<variablelist>
2828
<varlistentry>
29-
<term><parameter>dirname</parameter></term>
29+
<term><parameter>directory</parameter></term>
3030
<listitem>
3131
<para>
3232
Percorso della directory.

reference/filesystem/ini.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: a0ae28d3bc85f927c22649ebd9a590b921534b7d Maintainer: pastore Status: ready -->
2+
<!-- EN-Revision: d4d5216e7a965ca194f6b1c9dee84cecab2674e5 Maintainer: pastore Status: ready -->
33
<!-- CREDITS: cucinato -->
44
<section xml:id="filesystem.configuration" xmlns="http://docbook.org/ns/docbook">
55
&reftitle.runtime;
@@ -51,7 +51,7 @@
5151
<entry><link linkend="ini.auto-detect-line-endings">auto_detect_line_endings</link></entry>
5252
<entry>"0"</entry>
5353
<entry><constant>INI_ALL</constant></entry>
54-
<entry></entry>
54+
<entry>Deprecato a partire da PHP 8.1.0.</entry>
5555
</row>
5656
<row>
5757
<entry><link linkend="ini.sys-temp-dir">sys_temp_dir</link></entry>

0 commit comments

Comments
 (0)