reference/oci8/functions/oci-commit.xml
5e41012cfdf8f2eff5fa56de446c7656afac536c
...
...
@@ -73,7 +73,6 @@ $conn = oci_connect('hr', 'welcome', 'localhost/XE');
73
73
$stid = oci_parse($conn, "INSERT INTO mysalary (id, name) VALUES (1, 'Chris')");
74
74

75
75
// The OCI_NO_AUTO_COMMIT flag tells Oracle not to commit the INSERT immediately
76
-
// Use OCI_DEFAULT as the flag for PHP <= 5.3.1. The two flags are equivalent
77
76
$r = oci_execute($stid, OCI_NO_AUTO_COMMIT);
78
77
if (!$r) {
79
78
$e = oci_error($stid);
...
...
@@ -90,7 +89,7 @@ if (!$r) {
90
89

91
90
// Commit the changes to both tables
92
91
$r = oci_commit($conn);
93
-
if (!r) {
92
+
if (!$r) {
94
93
$e = oci_error($conn);
95
94
trigger_error(htmlentities($e['message']), E_USER_ERROR);
96
95
}
...
...
@@ -122,13 +121,6 @@ if (!r) {
122
121
uncommitted transaction.
123
122
</para>
124
123
</note>
125
-
<note>
126
-
<para>
127
-
In PHP versions before 5.0.0 you must
128
-
use <function>ocicommit</function>
129
-
instead. &oci.name.compat.note;
130
-
</para>
131
-
</note>
132
124
</refsect1>
133
125

134
126
<refsect1 role="seealso">
135
127