Skip to content

Commit 26bd63d

Browse files
committed
[Sync EN] SAPI: Document 8.5 CLI SAPI changes (#5077)
1 parent c4afd6d commit 26bd63d

3 files changed

Lines changed: 50 additions & 34 deletions

File tree

features/commandline.xml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: a52e3d27cca786940272d0ae8efc21b5d6739070 Maintainer: lacatoire Status: ready -->
2+
<!-- EN-Revision: b08b472de7041be8dbae153556b714efa93f20c0 Maintainer: lacatoire Status: ready -->
33
<!-- Reviewed: no -->
44

55
<chapter xml:id="features.commandline" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -271,7 +271,6 @@ Uso: php [opciones] [-f] <archivo> [--] [args...]
271271
-s Salida de sintaxis HTML resaltada.
272272
-v Número de versión
273273
-w Salida de código fuente con comentarios y espacios en blanco eliminados.
274-
-z <archivo> Cargar la extensión Zend <archivo>.
275274
276275
args... Argumentos pasados al script. Usar -- args cuando el primer argumento
277276
comienza con - o el script se lee desde stdin
@@ -685,21 +684,14 @@ Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
685684
</note>
686685
</entry>
687686
</row>
688-
<row>
689-
<entry>-z</entry>
690-
<entry>--zend-extension</entry>
691-
<entry>
692-
<para>
693-
Carga una extensión Zend. Si y solo si se proporciona un archivo, PHP intentará cargar esta extensión en el directorio predeterminado de las bibliotecas en su sistema (generalmente especificado con <filename>/etc/ld.so.conf</filename> en Linux, por ejemplo). Pasar un nombre de archivo con la ruta completa hará que PHP use este archivo, sin buscar en los directorios habituales. Una ruta de directorio relativa, que incluya información sobre el directorio, indicará a PHP que debe buscar las extensiones solo en ese directorio.
694-
</para>
695-
</entry>
696-
</row>
697687
<row>
698688
<entry></entry>
699689
<entry>--ini</entry>
700690
<entry>
701691
<para>
702692
Muestra los nombres de los archivos de configuración y los directorios analizados.
693+
Opcionalmente, pasar <literal>--ini=diff</literal> para mostrar las diferencias
694+
entre los archivos de configuración cargados y la configuración por omisión.
703695
<example>
704696
<title>Ejemplo con <literal>--ini</literal></title>
705697
<programlisting role="shell">
@@ -712,6 +704,11 @@ Additional .ini files parsed: (none)
712704
]]>
713705
</programlisting>
714706
</example>
707+
<note>
708+
<simpara>
709+
La opción <literal>--ini=diff</literal> no está disponible antes de PHP 8.5.0.
710+
</simpara>
711+
</note>
715712
</para>
716713
</entry>
717714
</row>

reference/info/functions/cli-get-process-title.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: a331ac8a86bb5929b79be9a369fac1e3af516241 Maintainer: PhilDaiguille Status: ready -->
3+
<!-- EN-Revision: b08b472de7041be8dbae153556b714efa93f20c0 Maintainer: PhilDaiguille Status: ready -->
44
<!-- Reviewed: no -->
55
<refentry xml:id="function.cli-get-process-title" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>

reference/info/functions/cli-set-process-title.xml

Lines changed: 41 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 2df224f44552cfc88fad705cca33c4cdb01d62ed Maintainer: PhilDaiguille Status: ready -->
3+
<!-- EN-Revision: b08b472de7041be8dbae153556b714efa93f20c0 Maintainer: PhilDaiguille Status: ready -->
44
<!-- Reviewed: no -->
55

66
<refentry xml:id="function.cli-set-process-title" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -16,12 +16,12 @@
1616
<methodparam><type>string</type><parameter>title</parameter></methodparam>
1717
</methodsynopsis>
1818

19-
<para>
19+
<simpara>
2020
Define el título del proceso visible con herramientas como
2121
<command>top</command> y <command>ps</command>. Esta función
2222
solo está disponible en modo
2323
<link linkend="features.commandline">CLI</link>.
24-
</para>
24+
</simpara>
2525

2626
</refsect1>
2727

@@ -31,36 +31,58 @@
3131
<varlistentry>
3232
<term><parameter>title</parameter></term>
3333
<listitem>
34-
<para>
35-
El nuevo título
36-
</para>
34+
<simpara>
35+
El nuevo título.
36+
</simpara>
3737
</listitem>
3838
</varlistentry>
3939
</variablelist>
4040
</refsect1>
4141

4242
<refsect1 role="returnvalues">
4343
&reftitle.returnvalues;
44-
<para>
44+
<simpara>
4545
&return.success;
46-
</para>
46+
</simpara>
4747
</refsect1>
4848

4949
<refsect1 role="errors">
5050
&reftitle.errors;
5151

52-
<para>
52+
<simpara>
5353
Se generará una alerta de nivel <constant>E_WARNING</constant> si el sistema
5454
subyacente no es compatible.
55-
</para>
55+
</simpara>
56+
</refsect1>
57+
58+
<refsect1 role="changelog">
59+
&reftitle.changelog;
60+
<informaltable>
61+
<tgroup cols="2">
62+
<thead>
63+
<row>
64+
<entry>&Version;</entry>
65+
<entry>&Description;</entry>
66+
</row>
67+
</thead>
68+
<tbody>
69+
<row>
70+
<entry>8.5.0</entry>
71+
<entry>
72+
<function>cli_set_process_title</function> ahora emite una
73+
alerta <constant>E_WARNING</constant> al definir un título de
74+
proceso demasiado largo; antes el título era truncado.
75+
</entry>
76+
</row>
77+
</tbody>
78+
</tgroup>
79+
</informaltable>
5680
</refsect1>
5781

5882
<refsect1 role="examples">
5983
&reftitle.examples;
60-
<para>
61-
<example>
62-
<title>Ejemplo con <function>cli_set_process_title</function></title>
63-
<programlisting role="php">
84+
<informalexample>
85+
<programlisting role="php">
6486
<![CDATA[
6587
<?php
6688
$title = "Mi super script PHP";
@@ -75,18 +97,15 @@ if (!cli_set_process_title($title)) {
7597
}
7698
?>
7799
]]>
78-
</programlisting>
79-
</example>
80-
</para>
100+
</programlisting>
101+
</informalexample>
81102
</refsect1>
82103

83104
<refsect1 role="seealso">
84105
&reftitle.seealso;
85-
<para>
86-
<simplelist>
87-
<member><function>cli_get_process_title</function></member>
88-
</simplelist>
89-
</para>
106+
<simplelist>
107+
<member><function>cli_get_process_title</function></member>
108+
</simplelist>
90109
</refsect1>
91110

92111
</refentry>

0 commit comments

Comments
 (0)