le_descriptor = zend_register_list_destructors_ex(php_oci_descriptor_list_dtor, NULL, "oci8 descriptor", module_number);
le_collection = zend_register_list_destructors_ex(php_oci_collection_list_dtor, NULL, "oci8 collection", module_number);
- INIT_CLASS_ENTRY(oci_lob_class_entry, "OCI-Lob", class_OCI_Lob_methods);
- INIT_CLASS_ENTRY(oci_coll_class_entry, "OCI-Collection", class_OCI_Collection_methods);
+ INIT_CLASS_ENTRY(oci_lob_class_entry, "OCI_Lob", class_OCI_Lob_methods);
+ INIT_CLASS_ENTRY(oci_coll_class_entry, "OCI_Collection", class_OCI_Collection_methods);
oci_lob_class_entry_ptr = zend_register_internal_class(&oci_lob_class_entry);
oci_coll_class_entry_ptr = zend_register_internal_class(&oci_coll_class_entry);
Removed obsolete no-op function oci_internal_debug(). (Jens de Nies)
+ The OCI-Lob class is now called OCI_Lob.
+
+ The OCI-Collection calls is now called OCI_Collection.
+
Generate arginfo from function stubs. (Jens de Nies)
</notes>
<contents>
--EXPECTF--
array(1) {
["NC"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
--TEST--
-Bug #44008 (Incorrect usage of OCI-Lob->close crashes PHP)
+Bug #44008 (Incorrect usage of OCI_Lob->close crashes PHP)
--SKIPIF--
<?php
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
echo "$r\n";
// Incorrectly closing the lob doesn't cause a crash.
-// OCI-LOB->close() is documented for use only with OCI-Lob->writeTemporary()
+// OCI-LOB->close() is documented for use only with OCI_Lob->writeTemporary()
$textLob->close();
// Cleanup
?>
--EXPECTF--
-object(OCI-Collection)#%d (1) {
+object(OCI_Collection)#%d (1) {
["collection"]=>
resource(%d) of type (oci8 collection)
}
?>
--EXPECTF--
-object(OCI-Collection)#%d (1) {
+object(OCI_Collection)#%d (1) {
["collection"]=>
resource(%d) of type (oci8 collection)
}
bool(true)
-string(%d) "OCI-Collection::size(): supplied resource is not a valid oci8 collection resource"
+string(%d) "OCI_Collection::size(): supplied resource is not a valid oci8 collection resource"
Warning: oci_new_collection(): OCI-22303: type ""."NONEXISTENT" not found in %s on line %d
bool(false)
?>
--EXPECTF--
-object(OCI-Collection)#%d (1) {
+object(OCI_Collection)#%d (1) {
["collection"]=>
resource(%d) of type (oci8 collection)
}
int(0)
int(0)
-Warning: OCI-Collection::trim(): OCI-22167: given trim size [3] must be less than or equal to [0] in %s on line %d
+Warning: OCI_Collection::trim(): OCI-22167: given trim size [3] must be less than or equal to [0] in %s on line %d
bool(false)
bool(true)
float(1)
?>
--EXPECTF--
-Warning: OCI-Collection::append(): OCI-01861: literal does not match format string in %s on line %d
+Warning: OCI_Collection::append(): OCI-01861: literal does not match format string in %s on line %d
bool(false)
bool(true)
bool(false)
--EXPECTF--
bool(true)
-Warning: OCI-Collection::assignelem(): OCI-22165: given index [%d] must be in the range of %s to [0] in %s on line %d
+Warning: OCI_Collection::assignelem(): OCI-22165: given index [%d] must be in the range of %s to [0] in %s on line %d
bool(false)
-Warning: OCI-Collection::assignelem(): OCI-22165: given index [5000] must be in the range of %s to [0] in %s on line %d
+Warning: OCI_Collection::assignelem(): OCI-22165: given index [5000] must be in the range of %s to [0] in %s on line %d
bool(false)
bool(false)
bool(false)
--EXPECTF--
Test 0
-Notice: OCI-Collection::append(): Unknown or unsupported type of element: 113 in %s on line %d
+Notice: OCI_Collection::append(): Unknown or unsupported type of element: 113 in %s on line %d
bool(false)
-Notice: OCI-Collection::assignelem(): Unknown or unsupported type of element: 113 in %s on line %d
+Notice: OCI_Collection::assignelem(): Unknown or unsupported type of element: 113 in %s on line %d
bool(false)
bool(false)
Test 1
-Warning: OCI-Collection::assignelem(): OCI-22165: given index [1] must be in the range of %s in %s on line %d
+Warning: OCI_Collection::assignelem(): OCI-22165: given index [1] must be in the range of %s in %s on line %d
bool(false)
bool(false)
Test 2
-Warning: OCI-Collection::assignelem(): OCI-22165: given index [1] must be in the range of %s in %s on line %d
+Warning: OCI_Collection::assignelem(): OCI-22165: given index [1] must be in the range of %s in %s on line %d
bool(false)
bool(false)
Test 3
-Warning: OCI-Collection::assignelem(): OCI-22165: given index [1] must be in the range of %s in %s on line %d
+Warning: OCI_Collection::assignelem(): OCI-22165: given index [1] must be in the range of %s in %s on line %d
bool(false)
bool(false)
Test 4
-Warning: OCI-Collection::append(): OCI-01840: input value not long enough for date format in %s on line %d
+Warning: OCI_Collection::append(): OCI-01840: input value not long enough for date format in %s on line %d
bool(false)
-Warning: OCI-Collection::assignelem(): OCI-22165: given index [1] must be in the range of %s in %s on line %d
+Warning: OCI_Collection::assignelem(): OCI-22165: given index [1] must be in the range of %s in %s on line %d
bool(false)
bool(false)
Done
string(32) "06d4f219d946c74d748d43932cd9dcb2"
Test 1
bool(true)
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
file md5:614fcbba1effb7caa27ef0ef25c27fcf
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
--EXPECTF--
array(1) {
["BLOB"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
["COL1"]=>
string(3) "123"
["COL2"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
["COL1"]=>
string(3) "456"
["COL2"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
["COL1"]=>
string(3) "789"
["COL2"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
?>
--EXPECTF--
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
?>
--EXPECTF--
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
bool(true)
array(2) {
[0]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
["BLOB"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
--EXPECTF--
array(2) {
[0]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
["BLOB"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
?>
--EXPECTF--
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
int(7000)
array(2) {
[0]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
["BLOB"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
?>
--EXPECTF--
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
int(7000)
array(2) {
[0]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
["BLOB"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
?>
--EXPECTF--
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
bool(true)
array(2) {
[0]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
["BLOB"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
--EXPECTF--
array(2) {
["LOB_1"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
["LOB_2"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
--EXPECTF--
array(2) {
["LOB_1"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
["LOB_2"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
bool(true)
int(4)
bool(true)
-string(%d) "OCI-Lob::write(): %s is not a valid oci8 descriptor resource"
+string(%d) "OCI_Lob::write(): %s is not a valid oci8 descriptor resource"
string(%d) "oci_free_descriptor(): %s is not a valid oci8 descriptor resource"
Warning: oci_free_descriptor(): Unable to find descriptor property in %s on line %d
?>
--EXPECTF--
-Warning: OCI-Lob::save(): Offset parameter must be greater than or equal to 0 in %s on line %d
+Warning: OCI_Lob::save(): Offset parameter must be greater than or equal to 0 in %s on line %d
string(4) "data"
string(9) "long data"
string(9) "long data"
?>
--EXPECTF--
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
bool(false)
array(2) {
[0]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
["BLOB"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
?>
--EXPECTF--
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
int(7000)
array(2) {
[0]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
["BLOB"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
int(7000)
array(2) {
[0]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
["BLOB"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
?>
--EXPECTF--
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
bool(true)
array(2) {
[0]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
["BLOB"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
?>
--EXPECTF--
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
int(72)
array(2) {
[0]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
["BLOB"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
bool(true)
string(0) ""
-Warning: OCI-Lob::truncate(): Length must be greater than or equal to zero in %s on line %d
+Warning: OCI_Lob::truncate(): Length must be greater than or equal to zero in %s on line %d
bool(false)
string(0) ""
-Warning: OCI-Lob::truncate(): Length must be greater than or equal to zero in %s on line %d
+Warning: OCI_Lob::truncate(): Length must be greater than or equal to zero in %s on line %d
bool(false)
bool(true)
Done
?>
--EXPECTF--
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
?>
--EXPECTF--
-Warning: OCI-Lob::write(): ORA-22990: %s in %s on line 19
+Warning: OCI_Lob::write(): ORA-22990: %s in %s on line 19
Done
?>
--EXPECTF--
-Warning: OCI-Lob::save(): OCI_INVALID_HANDLE in %s on line %d
+Warning: OCI_Lob::save(): OCI_INVALID_HANDLE in %s on line %d
bool(true)
bool(true)
Done
bool(true)
bool(true)
-Warning: OCI-Lob::flush(): Invalid flag value: -1 in %s on line %d
+Warning: OCI_Lob::flush(): Invalid flag value: -1 in %s on line %d
bool(false)
Done
bool(true)
array(1) {
["CLOB"]=>
- object(OCI-Lob)#2 (1) {
+ object(OCI_Lob)#2 (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
string(11) "clob test 1"
array(1) {
["CLOB"]=>
- object(OCI-Lob)#3 (1) {
+ object(OCI_Lob)#3 (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
string(11) "clob test 2"
array(1) {
["CLOB"]=>
- object(OCI-Lob)#2 (1) {
+ object(OCI_Lob)#2 (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
bool(true)
array(1) {
["BLOB"]=>
- object(OCI-Lob)#3 (1) {
+ object(OCI_Lob)#3 (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
string(11) "blob test 1"
array(1) {
["BLOB"]=>
- object(OCI-Lob)#4 (1) {
+ object(OCI_Lob)#4 (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
string(11) "blob test 2"
array(1) {
["BLOB"]=>
- object(OCI-Lob)#3 (1) {
+ object(OCI_Lob)#3 (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
Test 2 - implicit statement close
test data
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (Unknown)
}
test data
array(1) {
["C1"]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
?>
--EXPECTF--
-object(OCI-Lob)#%d (1) {
+object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}
-Warning: OCI-Lob::writetemporary(): Invalid temporary lob type: %d in %s on line %d
+Warning: OCI_Lob::writetemporary(): Invalid temporary lob type: %d in %s on line %d
bool(false)
int(6)
bool(true)
bool(true)
-Warning: OCI-Lob::truncate(): Size must be less than or equal to the current LOB size in %s on line %d
+Warning: OCI_Lob::truncate(): Size must be less than or equal to the current LOB size in %s on line %d
bool(false)
-Warning: OCI-Lob::truncate(): Length must be greater than or equal to zero in %s on line %d
+Warning: OCI_Lob::truncate(): Length must be greater than or equal to zero in %s on line %d
bool(false)
-Warning: OCI-Lob::read(): Offset must be less than size of the LOB in %s on line %d
+Warning: OCI_Lob::read(): Offset must be less than size of the LOB in %s on line %d
bool(false)
-Warning: OCI-Lob::import(): Can't open file %s in %s on line %d
+Warning: OCI_Lob::import(): Can't open file %s in %s on line %d
bool(false)
-Warning: OCI-Lob::savefile(): Can't open file %s in %s on line %d
+Warning: OCI_Lob::savefile(): Can't open file %s in %s on line %d
bool(false)
Done
--EXPECTF--
Test 1: Import
-Warning: OCI-Lob::savefile(): Argument #1 ($function) must be a valid path, string given in %snull_byte_1.php on line %d
+Warning: OCI_Lob::savefile(): Argument #1 ($function) must be a valid path, string given in %snull_byte_1.php on line %d
NULL
Test 2: Export
-Warning: OCI-Lob::export(): Argument #1 ($function) must be a valid path, string given in %snull_byte_1.php on line %d
+Warning: OCI_Lob::export(): Argument #1 ($function) must be a valid path, string given in %snull_byte_1.php on line %d
NULL
?>
--EXPECT--
Initial Data
-string(250) "<?xml version="1.0"?>
- <Xt>
- <XtId>1</XtId>
- <Size>Big</Size>
- <Area>12345</Area>
- <Hardness>20</Hardness>
- <Lip>Curved</Lip>
- <Color>Red</Color>
- <Nice>N</Nice>
- <Compact>Tiny</Compact>
- <Material>Steel</Material>
- </Xt>"
+Initial Data
+string(316) "<?xml version="1.0"?>
+ <Xt>
+ <XtId>1</XtId>
+ <Size>Big</Size>
+ <Area>12345</Area>
+ <Hardness>20</Hardness>
+ <Lip>Curved</Lip>
+ <Color>Red</Color>
+ <Nice>N</Nice>
+ <Compact>Tiny</Compact>
+ <Material>Steel</Material>
+ </Xt>"
Verify
-string(249) "<?xml version="1.0"?>
+string(309) "<?xml version="1.0"?>
<Xt>
- <XtId>1</XtId>
- <Size>Big</Size>
- <Area>12345</Area>
- <Hardness>19</Hardness>
- <Lip>Curved</Lip>
- <Color>Red</Color>
- <Nice>Y</Nice>
- <Compact>Tiny</Compact>
- <Material>Steel</Material>
- </Xt>
+ <XtId>1</XtId>
+ <Size>Big</Size>
+ <Area>12345</Area>
+ <Hardness>19</Hardness>
+ <Lip>Curved</Lip>
+ <Color>Red</Color>
+ <Nice>Y</Nice>
+ <Compact>Tiny</Compact>
+ <Material>Steel</Material>
+ </Xt>
"
Done
Test 1 Insert new XML data using a temporary CLOB
array(1) {
[0]=>
- object(OCI-Lob)#%d (1) {
+ object(OCI_Lob)#%d (1) {
["descriptor"]=>
resource(%d) of type (oci8 descriptor)
}