reference/oci8/functions/oci-error.xml
ed6de1ae20ce16c0c7be0b3fef282b6065bebfac
...
...
@@ -9,8 +9,8 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>array</type><methodname>oci_error</methodname>
13
-
<methodparam choice="opt"><type>resource</type><parameter>resource</parameter></methodparam>
12
+
<type class="union"><type>array</type><type>false</type></type><methodname>oci_error</methodname>
13
+
<methodparam choice="opt"><type class="union"><type>resource</type><type>null</type></type><parameter>connection_or_statement</parameter><initializer>&null;</initializer></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
Returns the last error found.
...
...
@@ -26,14 +26,14 @@
26
26
<para>
27
27
<variablelist>
28
28
<varlistentry>
29
-
<term><parameter>resource</parameter></term>
29
+
<term><parameter>connection_or_statement</parameter></term>
30
30
<listitem>
31
31
<para>
32
-
For most errors, <parameter>resource</parameter> is the
32
+
For most errors, <parameter>connection_or_statement</parameter> is the
33
33
resource handle that was passed to the failing function call.
34
34
For connection errors with <function>oci_connect</function>,
35
35
<function>oci_new_connect</function> or
36
-
<function>oci_pconnect</function> do not pass <parameter>resource</parameter>.
36
+
<function>oci_pconnect</function> &null; should be passed.
37
37
</para>
38
38
</listitem>
39
39
</varlistentry>
...
...
@@ -63,7 +63,7 @@
63
63
<tbody>
64
64
<row>
65
65
<entry><literal>code</literal></entry>
66
-
<entry><type>integer</type></entry>
66
+
<entry><type>int</type></entry>
67
67
<entry>
68
68
The Oracle error number.
69
69
</entry>
...
...
@@ -77,7 +77,7 @@
77
77
</row>
78
78
<row>
79
79
<entry><literal>offset</literal></entry>
80
-
<entry><type>integer</type></entry>
80
+
<entry><type>int</type></entry>
81
81
<entry>
82
82
The byte position of an error in the SQL statement. If there
83
83
was no statement, this is <literal>0</literal>
...
...
@@ -97,6 +97,28 @@
97
97
</para>
98
98
</refsect1>
99
99

100
+
<refsect1 role="changelog">
101
+
&reftitle.changelog;
102
+
<informaltable>
103
+
<tgroup cols="2">
104
+
<thead>
105
+
<row>
106
+
<entry>&Version;</entry>
107
+
<entry>&Description;</entry>
108
+
</row>
109
+
</thead>
110
+
<tbody>
111
+
<row>
112
+
<entry>8.0.0, PECL OCI8 3.0.0</entry>
113
+
<entry>
114
+
<parameter>connection_or_statement</parameter> is now nullable.
115
+
</entry>
116
+
</row>
117
+
</tbody>
118
+
</tgroup>
119
+
</informaltable>
120
+
</refsect1>
121
+

100
122
<refsect1 role="examples">
101
123
&reftitle.examples;
102
124
<para>
...
...
@@ -155,7 +177,6 @@ if (!$r) {
155
177
</para>
156
178
</refsect1>
157
179
</refentry>
158
-

159
180
<!-- Keep this comment at the end of the file
160
181
Local variables:
161
182
mode: sgml
162
183