Skip to content

Commit 919a02e

Browse files
mumumuGirgias
andauthored
[PHP 8.2] added imap_is_open documentation (#2583)
Co-authored-by: George Peter Banyard <[email protected]>
1 parent f2f5c11 commit 919a02e

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed

appendices/migration82/new-functions.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
</simplelist>
1010
</sect2>
1111

12+
<sect2 xml:id="migration82.new-functions.imap">
13+
<title>IMAP</title>
14+
<simplelist>
15+
<member><function>imap_is_open</function> (as of PHP 8.2.1)</member>
16+
</simplelist>
17+
</sect2>
18+
1219
<sect2 xml:id="migration82.new-functions.mysqli">
1320
<title>MySQLi</title>
1421
<simplelist>
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- $Revision$ -->
3+
<refentry xml:id="function.imap-is-open" xmlns="http://docbook.org/ns/docbook">
4+
<refnamediv>
5+
<refname>imap_is_open</refname>
6+
<refpurpose>Check if the <acronym>IMAP</acronym> stream is still valid</refpurpose>
7+
</refnamediv>
8+
<refsect1 role="description">
9+
&reftitle.description;
10+
<methodsynopsis>
11+
<type>bool</type><methodname>imap_is_open</methodname>
12+
<methodparam><type>IMAP\Connection</type><parameter>imap</parameter></methodparam>
13+
</methodsynopsis>
14+
<para>
15+
Check if the <acronym>IMAP</acronym> stream is still valid.
16+
</para>
17+
</refsect1>
18+
<refsect1 role="parameters">
19+
&reftitle.parameters;
20+
<para>
21+
<variablelist>
22+
&imap.imap-parameter.imap;
23+
</variablelist>
24+
</para>
25+
</refsect1>
26+
<refsect1 role="returnvalues">
27+
&reftitle.returnvalues;
28+
<para>
29+
Returns &true; if the stream is still valid, &false; otherwise.
30+
</para>
31+
</refsect1>
32+
33+
<refsect1 role="examples">
34+
&reftitle.examples;
35+
<para>
36+
<example>
37+
<title><function>imap_is_open</function> example</title>
38+
<programlisting role="php">
39+
<![CDATA[
40+
<?php
41+
$mbox = imap_open("{imap.example.org:143}INBOX", "username", "password") or die(implode(", ", imap_errors()));
42+
imap_is_open($mbox);
43+
// ...
44+
?>
45+
]]>
46+
</programlisting>
47+
</example>
48+
</para>
49+
</refsect1>
50+
</refentry>
51+
<!-- Keep this comment at the end of the file
52+
Local variables:
53+
mode: sgml
54+
sgml-omittag:t
55+
sgml-shorttag:t
56+
sgml-minimize-attributes:nil
57+
sgml-always-quote-attributes:t
58+
sgml-indent-step:1
59+
sgml-indent-data:t
60+
indent-tabs-mode:nil
61+
sgml-parent-document:nil
62+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
63+
sgml-exposed-tags:nil
64+
sgml-local-catalogs:nil
65+
sgml-local-ecat-files:nil
66+
End:
67+
vim600: syn=xml fen fdm=syntax fdl=2 si
68+
vim: et tw=78 syn=sgml
69+
vi: ts=1 sw=1
70+
-->

reference/imap/versions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<function name="imap_headerinfo" from="PHP 4, PHP 5, PHP 7, PHP 8"/>
3636
<function name="imap_headers" from="PHP 4, PHP 5, PHP 7, PHP 8"/>
3737
<function name="imap_gc" from="PHP 5 &gt;= 5.3.0, PHP 7, PHP 8"/>
38+
<function name="imap_is_open" from="PHP 8 &gt;= 8.2.1"/>
3839
<function name="imap_last_error" from="PHP 4, PHP 5, PHP 7, PHP 8"/>
3940
<function name="imap_list" from="PHP 4, PHP 5, PHP 7, PHP 8"/>
4041
<function name="imap_listscan" from="PHP 4, PHP 5, PHP 7, PHP 8"/>

0 commit comments

Comments
 (0)