reference/mysqli/mysqli/init.xml
9b1673cf114a1e10c4563ab9223cb56aed552b89
9b1673cf114a1e10c4563ab9223cb56aed552b89
...
...
@@ -4,19 +4,20 @@
4
4
<refnamediv>
5
5
<refname>mysqli::init</refname>
6
6
<refname>mysqli_init</refname>
7
-
<refpurpose>Initializes MySQLi and returns a resource for use with mysqli_real_connect()</refpurpose>
7
+
<refpurpose>Initializes MySQLi and returns an object for use with mysqli_real_connect()</refpurpose>
8
8
</refnamediv>
9
9
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
12
<para>&style.oop;</para>
13
-
<methodsynopsis role="oop">
14
-
<type>mysqli</type><methodname>mysqli::init</methodname>
13
+
<methodsynopsis role="mysqli">
14
+
<modifier role="attribute">#[\Deprecated]</modifier>
15
+
<modifier>public</modifier> <type class="union"><type>bool</type><type>null</type></type><methodname>mysqli::init</methodname>
15
16
<void/>
16
17
</methodsynopsis>
17
18
<para>&style.procedural;</para>
18
19
<methodsynopsis>
19
-
<type>mysqli</type><methodname>mysqli_init</methodname>
20
+
<type class="union"><type>mysqli</type><type>false</type></type><methodname>mysqli_init</methodname>
20
21
<void/>
21
22
</methodsynopsis>
22
23
<para>
...
...
@@ -25,19 +26,51 @@
25
26
</para>
26
27
<note>
27
28
<para>
28
-
Any subsequent calls to any mysqli function (except <function>mysqli_options</function>)
29
+
Any subsequent calls to any mysqli function (except <function>mysqli_options</function>
30
+
and <function>mysqli_ssl_set</function>)
29
31
will fail until <function>mysqli_real_connect</function> was called.
30
32
</para>
31
33
</note>
32
34
</refsect1>
33
35
36
+
<refsect1 role="parameters">
37
+
&reftitle.parameters;
38
+
&no.function.parameters;
39
+
</refsect1>
40
+
34
41
<refsect1 role="returnvalues">
35
42
&reftitle.returnvalues;
36
43
<para>
37
-
Returns an object.
44
+
<methodname>mysqli::init</methodname> returns &null; on success, &return.falseforfailure;.
45
+
<function>mysqli_init</function> returns an object on success, &return.falseforfailure;.
38
46
</para>
39
47
</refsect1>
40
48
49
+
<refsect1 role="changelog">
50
+
&reftitle.changelog;
51
+
<informaltable>
52
+
<tgroup cols="2">
53
+
<thead>
54
+
<row>
55
+
<entry>&Version;</entry>
56
+
<entry>&Description;</entry>
57
+
</row>
58
+
</thead>
59
+
<tbody>
60
+
<row>
61
+
<entry>8.1.0</entry>
62
+
<entry>
63
+
The object-oriented style <methodname>mysqli::init</methodname> method
64
+
has been deprecated.
65
+
Replace calls to <methodname>parent::init</methodname> with
66
+
<methodname>parent::__construct</methodname>.
67
+
</entry>
68
+
</row>
69
+
</tbody>
70
+
</tgroup>
71
+
</informaltable>
72
+
</refsect1>
73
+
41
74
<refsect1 role="examples">
42
75
&reftitle.examples;
43
76
<para>
...
...
@@ -58,7 +91,6 @@
58
91
</refsect1>
59
92
60
93
</refentry>
61
-
62
94
<!-- Keep this comment at the end of the file
63
95
Local variables:
64
96
mode: sgml
65
97