reference/oci8/functions/oci-close.xml
5e41012cfdf8f2eff5fa56de446c7656afac536c
...
...
@@ -9,7 +9,7 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>bool</type><methodname>oci_close</methodname>
12
+
<type class="union"><type>bool</type><type>null</type></type><methodname>oci_close</methodname>
13
13
<methodparam><type>resource</type><parameter>connection</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
...
...
@@ -45,7 +45,8 @@
45
45
<refsect1 role="returnvalues">
46
46
&reftitle.returnvalues;
47
47
<para>
48
-
&return.success;
48
+
Returns &null; when <link linkend="ini.oci8.old-oci-close-semantics">oci8.old_oci_close_semantics</link> is enabled,
49
+
or &true; otherwise.
49
50
</para>
50
51
</refsect1>
51
52

...
...
@@ -105,7 +106,7 @@ var_dump($res);
105
106

106
107
oci_close($conn);
107
108

108
-
// $conn is no long usable in the script but the underlying database
109
+
// $conn is no longer usable in the script but the underlying database
109
110
// connection is still held open until $stid is freed.
110
111
var_dump($conn); // prints NULL
111
112

...
...
@@ -200,27 +201,11 @@ print $r; // displays the function return value "Finished"
200
201
</note>
201
202
<note>
202
203
<para>
203
-
Prior to version PHP 5.1.2 (PECL OCI8
204
-
1.1) <function>oci_close</function> was a no-op. In more recent
205
-
versions it correctly closes the Oracle
206
-
connection. Use <link linkend="ini.oci8.old-oci-close-semantics">oci8.old_oci_close_semantics</link>
207
-
option to restore old behavior of this function.
208
-
</para>
209
-
</note>
210
-
<note>
211
-
<para>
212
204
The <function>oci_close</function> function does not close the
213
205
underlying database connections created
214
206
with <function>oci_pconnect</function>.
215
207
</para>
216
208
</note>
217
-
<note>
218
-
<para>
219
-
In PHP versions before 5.0.0 you must
220
-
use <function>ocilogoff</function> instead. &oci.name.compat.note;
221
-
</para>
222
-
</note>
223
-

224
209
</refsect1>
225
210

226
211
<refsect1 role="seealso">
...
...
@@ -234,7 +219,6 @@ print $r; // displays the function return value "Finished"
234
219
</refsect1>
235
220

236
221
</refentry>
237
-

238
222
<!-- Keep this comment at the end of the file
239
223
Local variables:
240
224
mode: sgml
241
225