Skip to content

Commit

Permalink
Fix RelaxNG violations
Browse files Browse the repository at this point in the history
These docs are already outdated so we just fix the issues
  • Loading branch information
Girgias committed Oct 31, 2024
1 parent 470b64b commit db722ef
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 104 deletions.
162 changes: 75 additions & 87 deletions features/commandline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ $ php -c /custom/directory/custom-file.ini my_script.php
</screen>
</para>
<para><example>
<title>Example of using <literal>-d</literal> to set an INI setting</title>
<screen>
<![CDATA[
# Omettendo il valore si imposta la direttiva data a "1"
Expand Down Expand Up @@ -1641,95 +1642,82 @@ php >
</para>

<para>
I tipi MIME standard vengono restituiti per i file con le estensioni: 3gp,
.apk, .avi, .bmp, .css, .csv, .doc, .docx, .flac, .gif, .gz,
.gzip, .htm, .html, .ics, .jpe, .jpeg, .jpg, .js, .kml, .kmz,
.m4a, .mov, .mp3, .mp4, .mpeg, .mpg, .odp, .ods, .odt, .oga, .ogg,
.ogv, .pdf, .pdf, .png, .pps, .pptx, .qt, .svg, .swf, .tar, .text,
.tif, .txt, .wav, .webm, .wmv, .xls, .xlsx, .xml, .xsl, .xsd, e .zip.
I tipi MIME standard vengono restituiti per i file con le estensioni:
<simplelist type="inline">
<member><literal>.3gp</literal></member>
<member><literal>.apk</literal></member>
<member><literal>.avi</literal></member>
<member><literal>.bmp</literal></member>
<member><literal>.css</literal></member>
<member><literal>.csv</literal></member>
<member><literal>.doc</literal></member>
<member><literal>.docx</literal></member>
<member><literal>.flac</literal></member>
<member><literal>.gif</literal></member>
<member><literal>.gz</literal></member>
<member><literal>.gzip</literal></member>
<member><literal>.htm</literal></member>
<member><literal>.html</literal></member>
<member><literal>.ics</literal></member>
<member><literal>.jpe</literal></member>
<member><literal>.jpeg</literal></member>
<member><literal>.jpg</literal></member>
<member><literal>.js</literal></member>
<member><literal>.kml</literal></member>
<member><literal>.kmz</literal></member>
<member><literal>.m4a</literal></member>
<member><literal>.mov</literal></member>
<member><literal>.mp3</literal></member>
<member><literal>.mp4</literal></member>
<member><literal>.mpeg</literal></member>
<member><literal>.mpg</literal></member>
<member><literal>.odp</literal></member>
<member><literal>.ods</literal></member>
<member><literal>.odt</literal></member>
<member><literal>.oga</literal></member>
<member><literal>.ogg</literal></member>
<member><literal>.ogv</literal></member>
<member><literal>.pdf</literal></member>
<member><literal>.png</literal></member>
<member><literal>.pps</literal></member>
<member><literal>.pptx</literal></member>
<member><literal>.qt</literal></member>
<member><literal>.svg</literal></member>
<member><literal>.swf</literal></member>
<member><literal>.tar</literal></member>
<member><literal>.text</literal></member>
<member><literal>.tif</literal></member>
<member><literal>.txt</literal></member>
<member><literal>.wav</literal></member>
<member><literal>.webm</literal></member>
<member><literal>.wmv</literal></member>
<member><literal>.xls</literal></member>
<member><literal>.xlsx</literal></member>
<member><literal>.xml</literal></member>
<member><literal>.xsl</literal></member>
<member><literal>.xsd</literal></member>
<member><literal>.zip</literal></member>
</simplelist>
.
</para>


<table>
<title>Changelog: Tipi MIME Supportati (estensioni dei file)</title>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>5.5.12</entry>
<entry>
.xml, .xsl, and .xsd
</entry>
</row>
<row>
<entry>5.5.7</entry>
<entry>
.3gp, .apk, .avi, .bmp, .csv, .doc, .docx, .flac, .gz, .gzip,
.ics, .kml, .kmz, .m4a, .mp3, .mp4, .mpg, .mpeg, .mov, .odp, .ods,
.odt, .oga, .pdf, .pptx, .pps, .qt, .swf, .tar, .text, .tif, .wav,
.wmv, .xls, .xlsx, and .zip
</entry>
</row>
<row>
<entry>5.5.5</entry>
<entry>
.pdf
</entry>
</row>
<row>
<entry>5.4.11</entry>
<entry>
.ogg, .ogv, and .webm
</entry>
</row>
<row>
<entry>5.4.4</entry>
<entry>
.htm and .svg
</entry>
</row>
</tbody>
</tgroup>
</table>


<table>
<title>Changelog</title>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>7.4.0</entry>
<entry>
Si può configurare il server web integrato per eseguire il fork di più worker
per testare il codice che richiede più richieste simultanee al
server web integrato. Impostare la variabile di ambiente
<envar>PHP_CLI_SERVER_WORKERS</envar> al numero di worker desiderati prima di avviare
il server.
Questo non è supportato su Windows.
<warning>
<para>
Questa funzione <emphasis>sperimentale</emphasis> <emphasis>non</emphasis> è
destinata all'uso in produzione. In genere, il server Web integrato
<emphasis>non</emphasis> è destinato all'uso in produzione.
</para>
</warning>
</entry>
</row>
</tbody>
</tgroup>
</table>

<simpara>
As of PHP 7.4.0, the built-in webserver can be configured to fork multiple
workers in order to test code that requires multiple concurrent requests
to the built-in webserver.
Set the <envar>PHP_CLI_SERVER_WORKERS</envar> environment variable to the
number of desired workers before starting the server.
</simpara>
<note>
<simpara>This feature is not supported on Windows.</simpara>
</note>
<warning>
<para>
This <emphasis>experimental</emphasis> feature is <emphasis>not</emphasis>
intended for production usage. Generally, the built-in Web Server is
<emphasis>not</emphasis> intended for production usage.
</para>
</warning>

<example>
<title>Avvio del web server</title>
Expand Down
4 changes: 2 additions & 2 deletions language/functions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ $privateMethod(); // Foo1::privateMethod
<note>
<para>
La sintassi della callable di prima classe non può essere combinata con l'<link linkend="language.oop5.basic.nullsafe">operatore nullsafe</link>. Entrambi i seguenti porteranno ad un errore in fase di compilazione:
<example>
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
Expand All @@ -1621,7 +1621,7 @@ $obj?->prop->method(...);
?>
]]>
</programlisting>
</example>
</informalexample>
</para>
</note>
</sect1>
Expand Down
10 changes: 5 additions & 5 deletions language/oop5/basic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,26 +140,26 @@ Stack trace:
l'attributo <classname>AllowDynamicProperties</classname>. Provando ad utilizzarlo
si innescherà un errore in fase di compilazione.
</para>
<example>
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
#[AllowDynamicProperties]
#[\AllowDynamicProperties]
readonly class Foo {
}
// Fatal error: Cannot apply #[AllowDynamicProperties] to readonly class Foo
?>
]]>
</programlisting>
</example>
</informalexample>

<para>
Poiché né le proprietà non tipizzate né quelle statiche possono essere contrassegnate con il
modificatore <literal>readonly</literal>, le classi readonly non possono dichiarare
nemmeno loro:
</para>
<example>
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
Expand All @@ -184,7 +184,7 @@ readonly class Foo
?>
]]>
</programlisting>
</example>
</informalexample>
<para>
Una classe <modifier>readonly</modifier> può essere
<link linkend="language.oop5.basic.extends">estesa</link>
Expand Down
4 changes: 2 additions & 2 deletions language/types/declarations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
<literal>boolean</literal>, invece che di tipo <type>bool</type>:
</para>
<para>
<example>
<informalexample>
<programlisting role="php">
<![CDATA[
<?php
Expand All @@ -155,7 +155,7 @@ Stack trace:
thrown in - on line 2
]]>
</screen>
</example>
</informalexample>
</para>
</warning>

Expand Down
20 changes: 12 additions & 8 deletions reference/curl/functions/curl-setopt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,9 @@
<row>
<entry valign="top"><constant>CURLOPT_CLOSEPOLICY</constant></entry>
<entry valign="top">
Uno dei valori <constant>CURLCLOSEPOLICY_*</constant>.
<simpara>
Uno dei valori <constant>CURLCLOSEPOLICY_*</constant>.
</simpara>
<note>
<para>
Questa opzione è deprecata, poichè non è mai stata implementata in cURL e
Expand Down Expand Up @@ -739,13 +741,15 @@
<row>
<entry valign="top"><constant>CURLOPT_SSLVERSION</constant></entry>
<entry valign="top">
Uno di <constant>CURL_SSLVERSION_DEFAULT</constant> (0),
<constant>CURL_SSLVERSION_TLSv1</constant> (1),
<constant>CURL_SSLVERSION_SSLv2</constant> (2),
<constant>CURL_SSLVERSION_SSLv3</constant> (3),
<constant>CURL_SSLVERSION_TLSv1_0</constant> (4),
<constant>CURL_SSLVERSION_TLSv1_1</constant> (5) o
<constant>CURL_SSLVERSION_TLSv1_2</constant> (6).
<simpara>
Uno di <constant>CURL_SSLVERSION_DEFAULT</constant> (0),
<constant>CURL_SSLVERSION_TLSv1</constant> (1),
<constant>CURL_SSLVERSION_SSLv2</constant> (2),
<constant>CURL_SSLVERSION_SSLv3</constant> (3),
<constant>CURL_SSLVERSION_TLSv1_0</constant> (4),
<constant>CURL_SSLVERSION_TLSv1_1</constant> (5) o
<constant>CURL_SSLVERSION_TLSv1_2</constant> (6).
</simpara>
<note>
<para>
La cosa migliore è non impostare questo e usare quello di default.
Expand Down

0 comments on commit db722ef

Please sign in to comment.