reference/mysqli/mysqli/init.xml
035c126c0393fe154bac46e2c3c489ebadce48a5
...
...
@@ -4,19 +4,19 @@
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>public</modifier> <type class="union"><type>bool</type><type>null</type></type><methodname>mysqli::init</methodname>
15
15
<void/>
16
16
</methodsynopsis>
17
17
<para>&style.procedural;</para>
18
18
<methodsynopsis>
19
-
<type>mysqli</type><methodname>mysqli_init</methodname>
19
+
<type class="union"><type>mysqli</type><type>false</type></type><methodname>mysqli_init</methodname>
20
20
<void/>
21
21
</methodsynopsis>
22
22
<para>
...
...
@@ -25,19 +25,51 @@
25
25
</para>
26
26
<note>
27
27
<para>
28
-
Any subsequent calls to any mysqli function (except <function>mysqli_options</function>)
28
+
Any subsequent calls to any mysqli function (except <function>mysqli_options</function>
29
+
and <function>mysqli_ssl_set</function>)
29
30
will fail until <function>mysqli_real_connect</function> was called.
30
31
</para>
31
32
</note>
32
33
</refsect1>
33
34

35
+
<refsect1 role="parameters">
36
+
&reftitle.parameters;
37
+
&no.function.parameters;
38
+
</refsect1>
39
+

34
40
<refsect1 role="returnvalues">
35
41
&reftitle.returnvalues;
36
42
<para>
37
-
Returns an object.
43
+
<methodname>mysqli::init</methodname> returns &null; on success, &return.falseforfailure;.
44
+
<function>mysqli_init</function> returns an object on success, &return.falseforfailure;.
38
45
</para>
39
46
</refsect1>
40
47

48
+
<refsect1 role="changelog">
49
+
&reftitle.changelog;
50
+
<informaltable>
51
+
<tgroup cols="2">
52
+
<thead>
53
+
<row>
54
+
<entry>&Version;</entry>
55
+
<entry>&Description;</entry>
56
+
</row>
57
+
</thead>
58
+
<tbody>
59
+
<row>
60
+
<entry>8.1.0</entry>
61
+
<entry>
62
+
The object-oriented style <methodname>mysqli::init</methodname> method
63
+
has been deprecated.
64
+
Replace calls to <methodname>parent::init</methodname> with
65
+
<methodname>parent::__construct</methodname>.
66
+
</entry>
67
+
</row>
68
+
</tbody>
69
+
</tgroup>
70
+
</informaltable>
71
+
</refsect1>
72
+

41
73
<refsect1 role="examples">
42
74
&reftitle.examples;
43
75
<para>
...
...
@@ -58,7 +90,6 @@
58
90
</refsect1>
59
91

60
92
</refentry>
61
-

62
93
<!-- Keep this comment at the end of the file
63
94
Local variables:
64
95
mode: sgml
65
96