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
20 changes: 18 additions & 2 deletions reference/sockets/constants.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 42402941bba0208a919e03e1320ca4732330eafa Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 890cc22d38fa747c9930fd0d5984c170f2490c1b Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: no -->
<appendix xml:id="sockets.constants" xmlns="http://docbook.org/ns/docbook">
&reftitle.constants;
Expand Down Expand Up @@ -46,7 +46,23 @@
</term>
<listitem>
<simpara>
Disponible a partir de PHP 8.3.0 (solo FreeBSD)
Familia de direcciones de socket para la interfaz <literal>divert(4)</literal>
de FreeBSD, usada para recibir paquetes desviados por el cortafuegos.
Disponible a partir de PHP 8.3.0 (solo FreeBSD).
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.af-packet">
<term>
<constant>AF_PACKET</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Familia de direcciones de socket para sockets de paquetes de bajo nivel,
usada para enviar y recibir paquetes en bruto a nivel del controlador
del dispositivo (capa 2 del modelo OSI).
Disponible a partir de PHP 8.5.0 (solo Linux).
</simpara>
</listitem>
</varlistentry>
Expand Down
11 changes: 10 additions & 1 deletion reference/sockets/functions/socket-addrinfo-lookup.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: e2f2172bf114599926878017ab2dce356956fa9e Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 890cc22d38fa747c9930fd0d5984c170f2490c1b Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.socket-addrinfo-lookup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand Down Expand Up @@ -74,6 +74,15 @@
</row>
</thead>
<tbody>
<row>
<entry>8.5.0</entry>
<entry>
Ahora lanza un <exceptionname>TypeError</exceptionname> si algún valor
del array <parameter>hints</parameter> no puede ser convertido a int,
y puede lanzar un <exceptionname>ValueError</exceptionname> si alguno
de esos valores produce un desbordamiento.
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
Expand Down
9 changes: 8 additions & 1 deletion reference/sockets/functions/socket-bind.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 35883800e764cccacf5772330bc007b6b08ffc6e Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 890cc22d38fa747c9930fd0d5984c170f2490c1b Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.socket-bind" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -86,6 +86,13 @@
</row>
</thead>
<tbody>
<row>
<entry>8.5.0</entry>
<entry>
Ahora lanza un <exceptionname>ValueError</exceptionname> cuando
<parameter>port</parameter> es menor que 0 o mayor que 65535.
</entry>
</row>
&sockets.changelog.socket-param;
</tbody>
</tgroup>
Expand Down
9 changes: 8 additions & 1 deletion reference/sockets/functions/socket-create-listen.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 0e097419a847a077c7d8a74ebc5237ba9d8ddc90 Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 890cc22d38fa747c9930fd0d5984c170f2490c1b Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.socket-create-listen" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -79,6 +79,13 @@
</row>
</thead>
<tbody>
<row>
<entry>8.5.0</entry>
<entry>
Ahora lanza un <exceptionname>ValueError</exceptionname> cuando
<parameter>port</parameter> es menor que 0 o mayor que 65535.
</entry>
</row>
<row>
<entry>8.4.0</entry>
<entry>
Expand Down
8 changes: 7 additions & 1 deletion reference/sockets/functions/socket-create.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: a871ef72edf436c59422dedd538594db2541d5f1 Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 890cc22d38fa747c9930fd0d5984c170f2490c1b Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.socket-create" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -241,6 +241,12 @@
</row>
</thead>
<tbody>
<row>
<entry>8.5.0</entry>
<entry>
Ahora admite la creación de sockets de la familia <constant>AF_PACKET</constant>.
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
Expand Down
9 changes: 8 additions & 1 deletion reference/sockets/functions/socket-getsockname.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 14dc7c47365f2b71f6c907a5ba5bccf42534d5a9 Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 890cc22d38fa747c9930fd0d5984c170f2490c1b Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.socket-getsockname" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -92,6 +92,13 @@
</row>
</thead>
<tbody>
<row>
<entry>8.5.0</entry>
<entry>
Ahora recupera el índice de la interfaz y su representación en cadena
cuando se usa sobre un socket de la familia <constant>AF_PACKET</constant>.
</entry>
</row>
&sockets.changelog.socket-param;
</tbody>
</tgroup>
Expand Down
9 changes: 8 additions & 1 deletion reference/sockets/functions/socket-sendto.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: e50e79746736dbdfbabe9bd3566793b3ddf38f58 Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 890cc22d38fa747c9930fd0d5984c170f2490c1b Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.socket-sendto" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -140,6 +140,13 @@
</row>
</thead>
<tbody>
<row>
<entry>8.5.0</entry>
<entry>
Ahora lanza un <exceptionname>ValueError</exceptionname> cuando
<parameter>port</parameter> es menor que 0 o mayor que 65535.
</entry>
</row>
&sockets.changelog.socket-param;
<row>
<entry>8.0.0</entry>
Expand Down
14 changes: 13 additions & 1 deletion reference/sockets/functions/socket-set-option.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 93105c67e470df72333493cc2e534635dd16422d Maintainer: PhilDaiguille Status: ready -->
<!-- EN-Revision: 890cc22d38fa747c9930fd0d5984c170f2490c1b Maintainer: PhilDaiguille Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.socket-set-option" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -91,6 +91,18 @@
</row>
</thead>
<tbody>
<row>
<entry>8.5.0</entry>
<entry>
Ahora lanza una excepción cuando se utiliza
<constant>MCAST_LEAVE_GROUP</constant> o
<constant>MCAST_LEAVE_SOURCE_GROUP</constant> y el valor no es un
objeto o un array válido, y lanza un
<exceptionname>ValueError</exceptionname> cuando se utiliza una opción
multicast sobre un socket que no es de la familia
<constant>AF_INET</constant> o <constant>AF_INET6</constant>.
</entry>
</row>
&sockets.changelog.socket-param;
</tbody>
</tgroup>
Expand Down