summaryrefslogtreecommitdiff
path: root/ext/oci8/tests/bug43497.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/oci8/tests/bug43497.phpt')
-rw-r--r--ext/oci8/tests/bug43497.phpt16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/oci8/tests/bug43497.phpt b/ext/oci8/tests/bug43497.phpt
index 6171127591..618836da58 100644
--- a/ext/oci8/tests/bug43497.phpt
+++ b/ext/oci8/tests/bug43497.phpt
@@ -102,27 +102,27 @@ function dropxmltab($c) // delete table
function fillxmltab($c)
{
for ($id = 1; $id <= 100; $id++) {
-
- // create an XML element string with random data
+
+ // create an XML element string with random data
$s = "<data>";
for ($j = 0; $j < 128; $j++) {
- $s .= rand();
+ $s .= rand();
}
- $s .= "</data>\n";
+ $s .= "</data>\n";
for ($j = 0; $j < 4; $j++) {
$s .= $s;
- }
+ }
$data = "<?xml version=\"1.0\"?><records>" . $s . "</records>";
-
+
// insert XML data into database
-
+
$stmt = oci_parse($c, "insert into bug43497_tab(id, xml) values (:id, sys.xmltype.createxml(:xml))");
oci_bind_by_name($stmt, ":id", $id);
$clob = oci_new_descriptor($c, OCI_D_LOB);
oci_bind_by_name($stmt, ":xml", $clob, -1, OCI_B_CLOB);
$clob->writetemporary($data);
oci_execute($stmt);
-
+
$clob->close();
$clob->free();
}