Skip to content
Closed
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
47 changes: 45 additions & 2 deletions reference/network/functions/socket-set-timeout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,61 @@
<refentry xml:id="function.socket-set-timeout" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>socket_set_timeout</refname>
<refpurpose>&Alias; <function>stream_set_timeout</function></refpurpose>
<refpurpose>&Alias; <function>stream_set_timeout</function></refpurpose>
</refnamediv>

<refsynopsisdiv>
&warn.deprecated.function-8-5-0;
</refsynopsisdiv>

<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier role="attribute">#[\Deprecated]</modifier>
<type>bool</type><methodname>socket_set_timeout</methodname>
<methodparam><type>resource</type><parameter>stream</parameter></methodparam>
<methodparam><type>int</type><parameter>seconds</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>microseconds</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<simpara>
&info.function.alias;
<function>stream_set_timeout</function>.
This function has been deprecated as of PHP 8.5.0; use
<function>stream_set_timeout</function> instead.
</simpara>
</refsect1>
</refentry>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.5.0</entry>
<entry>
This function has been deprecated.
Use <function>stream_set_timeout</function> instead.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><function>stream_set_timeout</function></member>
</simplelist>
</refsect1>

</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Expand Down