diff --git a/ext/oci8/tests/array_bind_002.phpt b/ext/oci8/tests/array_bind_002.phpt index 4c76df42f92..f0c3f2118e5 100644 --- a/ext/oci8/tests/array_bind_002.phpt +++ b/ext/oci8/tests/array_bind_002.phpt @@ -75,3 +75,20 @@ array(5) { string(9) "05-NOV-05" } Done +--UEXPECTF-- +Warning: oci_bind_array_by_name(): Maximum array length must be greater than zero in %s on line %d + +Warning: oci_execute(): ORA-01008: not all variables bound in %s on line %d +array(5) { + [0]=> + unicode(9) "06-DEC-05" + [1]=> + unicode(9) "10-DEC-80" + [2]=> + unicode(9) "21-AUG-91" + [3]=> + unicode(9) "26-OCT-17" + [4]=> + unicode(9) "05-NOV-05" +} +Done diff --git a/ext/oci8/tests/bind_long.phpt b/ext/oci8/tests/bind_long.phpt index ddbc11eb698..c9e9c58d687 100644 --- a/ext/oci8/tests/bind_long.phpt +++ b/ext/oci8/tests/bind_long.phpt @@ -36,3 +36,7 @@ echo "Done\n"; string(32) "da852396d08c9ef9fbdf914db1d6d5bb" int(276) Done +--UEXPECTF-- +unicode(32) "da852396d08c9ef9fbdf914db1d6d5bb" +int(276) +Done diff --git a/ext/oci8/tests/bind_long_raw.phpt b/ext/oci8/tests/bind_long_raw.phpt index 2a9962eace9..e4a8d6e297e 100644 --- a/ext/oci8/tests/bind_long_raw.phpt +++ b/ext/oci8/tests/bind_long_raw.phpt @@ -36,3 +36,7 @@ echo "Done\n"; string(32) "614fcbba1effb7caa27ef0ef25c27fcf" int(2523) Done +--UEXPECTF-- +unicode(32) "614fcbba1effb7caa27ef0ef25c27fcf" +int(2523) +Done diff --git a/ext/oci8/tests/bind_raw.phpt b/ext/oci8/tests/bind_raw.phpt index c9087e552b6..7391a22528b 100644 --- a/ext/oci8/tests/bind_raw.phpt +++ b/ext/oci8/tests/bind_raw.phpt @@ -37,3 +37,7 @@ echo "Done\n"; string(32) "88b274d7a257ac6f70435b83abd4e26e" int(300) Done +--UEXPECTF-- +unicode(32) "88b274d7a257ac6f70435b83abd4e26e" +int(300) +Done diff --git a/ext/oci8/tests/coll_001.phpt b/ext/oci8/tests/coll_001.phpt index 57d3cf1b479..88d1217ea04 100644 --- a/ext/oci8/tests/coll_001.phpt +++ b/ext/oci8/tests/coll_001.phpt @@ -25,3 +25,12 @@ object(OCI-Collection)#%d (1) { Warning: oci_new_collection(): OCI-22303: type ""."NONEXISTENT" not found in %s on line %d bool(false) Done +--UEXPECTF-- +object(OCI-Collection)#%d (1) { + [u"collection"]=> + resource(%d) of type (oci8 collection) +} + +Warning: oci_new_collection(): OCI-22303: type ""."NONEXISTENT" not found in %s on line %d +bool(false) +Done diff --git a/ext/oci8/tests/coll_002.phpt b/ext/oci8/tests/coll_002.phpt index 6d305198979..8378cf1efa7 100644 --- a/ext/oci8/tests/coll_002.phpt +++ b/ext/oci8/tests/coll_002.phpt @@ -28,3 +28,13 @@ bool(true) Warning: OCI-Collection::size(): %d is not a valid oci8 collection resource in %s on line %d bool(false) Done +--UEXPECTF-- +object(OCI-Collection)#%d (1) { + [u"collection"]=> + resource(%d) of type (oci8 collection) +} +bool(true) + +Warning: OCI-Collection::size(): %d is not a valid oci8 collection resource in %s on line %d +bool(false) +Done diff --git a/ext/oci8/tests/coll_002_func.phpt b/ext/oci8/tests/coll_002_func.phpt index 58e641ee243..952b9d72308 100644 --- a/ext/oci8/tests/coll_002_func.phpt +++ b/ext/oci8/tests/coll_002_func.phpt @@ -28,3 +28,13 @@ bool(true) Warning: oci_collection_size(): %d is not a valid oci8 collection resource in %s on line %d bool(false) Done +--UEXPECTF-- +object(OCI-Collection)#%d (1) { + [u"collection"]=> + resource(%d) of type (oci8 collection) +} +bool(true) + +Warning: oci_collection_size(): %d is not a valid oci8 collection resource in %s on line %d +bool(false) +Done diff --git a/ext/oci8/tests/coll_005.phpt b/ext/oci8/tests/coll_005.phpt index 0f40069964f..86a3bc4a3ca 100644 --- a/ext/oci8/tests/coll_005.phpt +++ b/ext/oci8/tests/coll_005.phpt @@ -25,3 +25,12 @@ object(OCI-Collection)#%d (1) { Warning: ocinewcollection(): OCI-22303: type ""."NONEXISTENT" not found in %s on line %d bool(false) Done +--UEXPECTF-- +object(OCI-Collection)#%d (1) { + [u"collection"]=> + resource(%d) of type (oci8 collection) +} + +Warning: ocinewcollection(): OCI-22303: type ""."NONEXISTENT" not found in %s on line %d +bool(false) +Done diff --git a/ext/oci8/tests/coll_006.phpt b/ext/oci8/tests/coll_006.phpt index cf258cbe344..2288ed3f706 100644 --- a/ext/oci8/tests/coll_006.phpt +++ b/ext/oci8/tests/coll_006.phpt @@ -28,3 +28,13 @@ bool(true) Warning: OCI-Collection::size(): %d is not a valid oci8 collection resource in %s on line %d bool(false) Done +--UEXPECTF-- +object(OCI-Collection)#%d (1) { + [u"collection"]=> + resource(%d) of type (oci8 collection) +} +bool(true) + +Warning: OCI-Collection::size(): %d is not a valid oci8 collection resource in %s on line %d +bool(false) +Done diff --git a/ext/oci8/tests/coll_006_func.phpt b/ext/oci8/tests/coll_006_func.phpt index 56707d6087a..26f6a150c94 100644 --- a/ext/oci8/tests/coll_006_func.phpt +++ b/ext/oci8/tests/coll_006_func.phpt @@ -28,3 +28,13 @@ bool(true) Warning: oci_collection_size(): %d is not a valid oci8 collection resource in %s on line %d bool(false) Done +--UEXPECTF-- +object(OCI-Collection)#%d (1) { + [u"collection"]=> + resource(%d) of type (oci8 collection) +} +bool(true) + +Warning: oci_collection_size(): %d is not a valid oci8 collection resource in %s on line %d +bool(false) +Done diff --git a/ext/oci8/tests/commit.phpt b/ext/oci8/tests/commit.phpt index 3bef318c854..9e409f34c6d 100644 --- a/ext/oci8/tests/commit.phpt +++ b/ext/oci8/tests/commit.phpt @@ -146,3 +146,83 @@ array(5) { } } Done +--UEXPECTF-- +bool(true) +int(0) +array(5) { + [u"ID"]=> + array(0) { + } + [u"VALUE"]=> + array(0) { + } + [u"BLOB"]=> + array(0) { + } + [u"CLOB"]=> + array(0) { + } + [u"STRING"]=> + array(0) { + } +} +bool(true) +int(4) +array(5) { + [u"ID"]=> + array(4) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" + [2]=> + string(1) "1" + [3]=> + string(1) "1" + } + [u"VALUE"]=> + array(4) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" + [2]=> + string(1) "1" + [3]=> + string(1) "1" + } + [u"BLOB"]=> + array(4) { + [0]=> + NULL + [1]=> + NULL + [2]=> + NULL + [3]=> + NULL + } + [u"CLOB"]=> + array(4) { + [0]=> + NULL + [1]=> + NULL + [2]=> + NULL + [3]=> + NULL + } + [u"STRING"]=> + array(4) { + [0]=> + NULL + [1]=> + NULL + [2]=> + NULL + [3]=> + NULL + } +} +Done diff --git a/ext/oci8/tests/commit_old.phpt b/ext/oci8/tests/commit_old.phpt index 196e0650cc1..a8a1c40e139 100644 --- a/ext/oci8/tests/commit_old.phpt +++ b/ext/oci8/tests/commit_old.phpt @@ -144,3 +144,83 @@ array(5) { } } Done +--UEXPECTF-- +bool(true) +int(0) +array(5) { + [u"ID"]=> + array(0) { + } + [u"VALUE"]=> + array(0) { + } + [u"BLOB"]=> + array(0) { + } + [u"CLOB"]=> + array(0) { + } + [u"STRING"]=> + array(0) { + } +} +bool(true) +int(4) +array(5) { + [u"ID"]=> + array(4) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" + [2]=> + string(1) "1" + [3]=> + string(1) "1" + } + [u"VALUE"]=> + array(4) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" + [2]=> + string(1) "1" + [3]=> + string(1) "1" + } + [u"BLOB"]=> + array(4) { + [0]=> + NULL + [1]=> + NULL + [2]=> + NULL + [3]=> + NULL + } + [u"CLOB"]=> + array(4) { + [0]=> + NULL + [1]=> + NULL + [2]=> + NULL + [3]=> + NULL + } + [u"STRING"]=> + array(4) { + [0]=> + NULL + [1]=> + NULL + [2]=> + NULL + [3]=> + NULL + } +} +Done diff --git a/ext/oci8/tests/cursors.phpt b/ext/oci8/tests/cursors.phpt index 22c89c9c549..865c15ecc0c 100644 --- a/ext/oci8/tests/cursors.phpt +++ b/ext/oci8/tests/cursors.phpt @@ -63,3 +63,22 @@ Warning: oci_fetch_assoc(): ORA-01002: fetch out of sequence in %s on line %d bool(false) bool(true) Done +--UEXPECTF-- +array(5) { + [u"ID"]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [u"BLOB"]=> + NULL + [u"CLOB"]=> + NULL + [u"STRING"]=> + NULL +} +bool(true) + +Warning: oci_fetch_assoc(): ORA-01002: fetch out of sequence in %s on line %d +bool(false) +bool(true) +Done diff --git a/ext/oci8/tests/cursors_old.phpt b/ext/oci8/tests/cursors_old.phpt index cf3b5f95757..13b39f1fb40 100644 --- a/ext/oci8/tests/cursors_old.phpt +++ b/ext/oci8/tests/cursors_old.phpt @@ -62,3 +62,21 @@ array(2) { } bool(true) Done +--UEXPECTF-- +array(2) { + [u"ID"]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" +} +bool(true) + +Warning: ocifetchinto(): ORA-01002: fetch out of sequence in %s on line %d +array(2) { + [u"ID"]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" +} +bool(true) +Done diff --git a/ext/oci8/tests/descriptors.phpt b/ext/oci8/tests/descriptors.phpt index 8be4f3a06d3..1675fd1cab3 100644 --- a/ext/oci8/tests/descriptors.phpt +++ b/ext/oci8/tests/descriptors.phpt @@ -47,3 +47,12 @@ array(1) { } } Done +--UEXPECTF-- +array(1) { + [u"BLOB"]=> + object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) + } +} +Done diff --git a/ext/oci8/tests/error.phpt b/ext/oci8/tests/error.phpt index 743820f9016..c38432c90ae 100644 --- a/ext/oci8/tests/error.phpt +++ b/ext/oci8/tests/error.phpt @@ -38,3 +38,20 @@ array(4) { string(12) "WRONG SYNTAX" } Done +--UEXPECTF-- +resource(%d) of type (oci8 connection) +resource(%d) of type (oci8 statement) + +Warning: oci_execute(): ORA-00900: invalid SQL statement in %s on line %d +bool(false) +array(4) { + [u"code"]=> + int(900) + [u"message"]=> + string(32) "ORA-00900: invalid SQL statement" + [u"offset"]=> + int(0) + [u"sqltext"]=> + string(12) "WRONG SYNTAX" +} +Done diff --git a/ext/oci8/tests/error1.phpt b/ext/oci8/tests/error1.phpt index 25a3f09e92d..db7670769ea 100644 --- a/ext/oci8/tests/error1.phpt +++ b/ext/oci8/tests/error1.phpt @@ -25,3 +25,17 @@ array(4) { string(0) "" } Done +--UEXPECTF-- +Warning: oci_connect(): ORA-12154: TNS:could not resolve service name in %s on line %d +bool(false) +array(4) { + [u"code"]=> + int(12154) + [u"message"]=> + string(45) "ORA-12154: TNS:could not resolve service name" + [u"offset"]=> + int(0) + [u"sqltext"]=> + string(0) "" +} +Done diff --git a/ext/oci8/tests/error_old.phpt b/ext/oci8/tests/error_old.phpt index a6889c897a7..2b2c279214a 100644 --- a/ext/oci8/tests/error_old.phpt +++ b/ext/oci8/tests/error_old.phpt @@ -38,3 +38,20 @@ array(4) { string(12) "WRONG SYNTAX" } Done +--UEXPECTF-- +resource(%d) of type (oci8 connection) +resource(%d) of type (oci8 statement) + +Warning: ociexecute(): ORA-00900: invalid SQL statement in %s on line %d +bool(false) +array(4) { + [u"code"]=> + int(900) + [u"message"]=> + string(32) "ORA-00900: invalid SQL statement" + [u"offset"]=> + int(0) + [u"sqltext"]=> + string(12) "WRONG SYNTAX" +} +Done diff --git a/ext/oci8/tests/fetch_all.phpt b/ext/oci8/tests/fetch_all.phpt index 5d3738b892a..a3722c47888 100644 --- a/ext/oci8/tests/fetch_all.phpt +++ b/ext/oci8/tests/fetch_all.phpt @@ -147,3 +147,101 @@ array(5) { } } Done +--UEXPECT-- +int(3) +array(5) { + [u"ID"]=> + array(3) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" + [2]=> + string(1) "1" + } + [u"VALUE"]=> + array(3) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" + [2]=> + string(1) "1" + } + [u"BLOB"]=> + array(3) { + [0]=> + NULL + [1]=> + NULL + [2]=> + NULL + } + [u"CLOB"]=> + array(3) { + [0]=> + NULL + [1]=> + NULL + [2]=> + NULL + } + [u"STRING"]=> + array(3) { + [0]=> + NULL + [1]=> + NULL + [2]=> + NULL + } +} +int(3) +array(5) { + [u"ID"]=> + array(3) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" + [2]=> + string(1) "1" + } + [u"VALUE"]=> + array(3) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" + [2]=> + string(1) "1" + } + [u"BLOB"]=> + array(3) { + [0]=> + NULL + [1]=> + NULL + [2]=> + NULL + } + [u"CLOB"]=> + array(3) { + [0]=> + NULL + [1]=> + NULL + [2]=> + NULL + } + [u"STRING"]=> + array(3) { + [0]=> + NULL + [1]=> + NULL + [2]=> + NULL + } +} +Done diff --git a/ext/oci8/tests/fetch_array.phpt b/ext/oci8/tests/fetch_array.phpt index e2f32483d58..62d5fcbe8fc 100644 --- a/ext/oci8/tests/fetch_array.phpt +++ b/ext/oci8/tests/fetch_array.phpt @@ -306,3 +306,233 @@ array(10) { NULL } Done +--UEXPECT-- +array(10) { + [0]=> + string(1) "1" + [u"ID"]=> + string(1) "1" + [1]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [2]=> + NULL + [u"BLOB"]=> + NULL + [3]=> + NULL + [u"CLOB"]=> + NULL + [4]=> + NULL + [u"STRING"]=> + NULL +} +array(10) { + [0]=> + string(1) "1" + [u"ID"]=> + string(1) "1" + [1]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [2]=> + NULL + [u"BLOB"]=> + NULL + [3]=> + NULL + [u"CLOB"]=> + NULL + [4]=> + NULL + [u"STRING"]=> + NULL +} +array(10) { + [0]=> + string(1) "1" + [u"ID"]=> + string(1) "1" + [1]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [2]=> + NULL + [u"BLOB"]=> + NULL + [3]=> + NULL + [u"CLOB"]=> + NULL + [4]=> + NULL + [u"STRING"]=> + NULL +} +array(2) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" +} +array(2) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" +} +array(2) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" +} +array(2) { + [u"ID"]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" +} +array(2) { + [u"ID"]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" +} +array(2) { + [u"ID"]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" +} +array(4) { + [0]=> + string(1) "1" + [u"ID"]=> + string(1) "1" + [1]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" +} +array(4) { + [0]=> + string(1) "1" + [u"ID"]=> + string(1) "1" + [1]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" +} +array(4) { + [0]=> + string(1) "1" + [u"ID"]=> + string(1) "1" + [1]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" +} +array(4) { + [0]=> + string(1) "1" + [u"ID"]=> + string(1) "1" + [1]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" +} +array(4) { + [0]=> + string(1) "1" + [u"ID"]=> + string(1) "1" + [1]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" +} +array(4) { + [0]=> + string(1) "1" + [u"ID"]=> + string(1) "1" + [1]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" +} +array(10) { + [0]=> + string(1) "1" + [u"ID"]=> + string(1) "1" + [1]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [2]=> + NULL + [u"BLOB"]=> + NULL + [3]=> + NULL + [u"CLOB"]=> + NULL + [4]=> + NULL + [u"STRING"]=> + NULL +} +array(10) { + [0]=> + string(1) "1" + [u"ID"]=> + string(1) "1" + [1]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [2]=> + NULL + [u"BLOB"]=> + NULL + [3]=> + NULL + [u"CLOB"]=> + NULL + [4]=> + NULL + [u"STRING"]=> + NULL +} +array(10) { + [0]=> + string(1) "1" + [u"ID"]=> + string(1) "1" + [1]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [2]=> + NULL + [u"BLOB"]=> + NULL + [3]=> + NULL + [u"CLOB"]=> + NULL + [4]=> + NULL + [u"STRING"]=> + NULL +} +Done diff --git a/ext/oci8/tests/fetch_assoc.phpt b/ext/oci8/tests/fetch_assoc.phpt index 7dacf2e5b25..0c9e574751c 100644 --- a/ext/oci8/tests/fetch_assoc.phpt +++ b/ext/oci8/tests/fetch_assoc.phpt @@ -80,3 +80,41 @@ array(5) { NULL } Done +--UEXPECT-- +array(5) { + [u"ID"]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [u"BLOB"]=> + NULL + [u"CLOB"]=> + NULL + [u"STRING"]=> + NULL +} +array(5) { + [u"ID"]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [u"BLOB"]=> + NULL + [u"CLOB"]=> + NULL + [u"STRING"]=> + NULL +} +array(5) { + [u"ID"]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [u"BLOB"]=> + NULL + [u"CLOB"]=> + NULL + [u"STRING"]=> + NULL +} +Done diff --git a/ext/oci8/tests/fetch_into.phpt b/ext/oci8/tests/fetch_into.phpt index 379f5fc14eb..8bd93beaf0d 100644 --- a/ext/oci8/tests/fetch_into.phpt +++ b/ext/oci8/tests/fetch_into.phpt @@ -80,3 +80,35 @@ array(10) { NULL } Done +--UEXPECT-- +int(5) +array(2) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" +} +int(5) +array(10) { + [0]=> + string(1) "1" + [u"ID"]=> + string(1) "1" + [1]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [2]=> + NULL + [u"BLOB"]=> + NULL + [3]=> + NULL + [u"CLOB"]=> + NULL + [4]=> + NULL + [u"STRING"]=> + NULL +} +Done diff --git a/ext/oci8/tests/fetch_into1.phpt b/ext/oci8/tests/fetch_into1.phpt index 263590d1401..f7a1b6939dc 100644 --- a/ext/oci8/tests/fetch_into1.phpt +++ b/ext/oci8/tests/fetch_into1.phpt @@ -190,3 +190,135 @@ array(5) { NULL } Done +--UEXPECT-- +int(5) +array(2) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" +} +int(5) +array(2) { + [u"ID"]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" +} +int(5) +array(5) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" + [2]=> + NULL + [3]=> + NULL + [4]=> + NULL +} +int(5) +array(2) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" +} +int(5) +array(4) { + [0]=> + string(1) "1" + [u"ID"]=> + string(1) "1" + [1]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" +} +int(5) +array(10) { + [0]=> + string(1) "1" + [u"ID"]=> + string(1) "1" + [1]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [2]=> + NULL + [u"BLOB"]=> + NULL + [3]=> + NULL + [u"CLOB"]=> + NULL + [4]=> + NULL + [u"STRING"]=> + NULL +} +int(5) +array(10) { + [0]=> + string(1) "1" + [u"ID"]=> + string(1) "1" + [1]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [2]=> + NULL + [u"BLOB"]=> + NULL + [3]=> + NULL + [u"CLOB"]=> + NULL + [4]=> + NULL + [u"STRING"]=> + NULL +} +int(5) +array(5) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" + [2]=> + NULL + [3]=> + NULL + [4]=> + NULL +} +int(5) +array(5) { + [u"ID"]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [u"BLOB"]=> + NULL + [u"CLOB"]=> + NULL + [u"STRING"]=> + NULL +} +int(5) +array(5) { + [0]=> + string(1) "1" + [1]=> + string(1) "1" + [2]=> + NULL + [3]=> + NULL + [4]=> + NULL +} +Done diff --git a/ext/oci8/tests/fetch_object.phpt b/ext/oci8/tests/fetch_object.phpt index 57b7fc03d81..ce78aa47d50 100644 --- a/ext/oci8/tests/fetch_object.phpt +++ b/ext/oci8/tests/fetch_object.phpt @@ -80,3 +80,41 @@ object(stdClass)#%d (5) { NULL } Done +--UEXPECTF-- +object(stdClass)#%d (5) { + [u"ID"]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [u"BLOB"]=> + NULL + [u"CLOB"]=> + NULL + [u"STRING"]=> + NULL +} +object(stdClass)#%d (5) { + [u"ID"]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [u"BLOB"]=> + NULL + [u"CLOB"]=> + NULL + [u"STRING"]=> + NULL +} +object(stdClass)#%d (5) { + [u"ID"]=> + string(1) "1" + [u"VALUE"]=> + string(1) "1" + [u"BLOB"]=> + NULL + [u"CLOB"]=> + NULL + [u"STRING"]=> + NULL +} +Done diff --git a/ext/oci8/tests/lob_001.phpt b/ext/oci8/tests/lob_001.phpt index cbcb92e7ec7..569a85cbcd8 100644 Binary files a/ext/oci8/tests/lob_001.phpt and b/ext/oci8/tests/lob_001.phpt differ diff --git a/ext/oci8/tests/lob_002.phpt b/ext/oci8/tests/lob_002.phpt index ebbef1815e2..ab53b2805c0 100644 --- a/ext/oci8/tests/lob_002.phpt +++ b/ext/oci8/tests/lob_002.phpt @@ -64,3 +64,21 @@ NULL bool(false) int(40004) Done +--UEXPECTF-- +object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) +} +int(0) + +Warning: OCI-Lob::write() expects parameter 2 to be long, Unicode string given in %s on line %d +NULL +int(4) +int(40000) +int(40004) + +Warning: OCI-Lob::seek() expects parameter 1 to be long, Unicode string given in %s on line %d +NULL +bool(false) +int(40004) +Done diff --git a/ext/oci8/tests/lob_003.phpt b/ext/oci8/tests/lob_003.phpt index 8a492d16ca9..5704548dc31 100644 Binary files a/ext/oci8/tests/lob_003.phpt and b/ext/oci8/tests/lob_003.phpt differ diff --git a/ext/oci8/tests/lob_004.phpt b/ext/oci8/tests/lob_004.phpt index 32de4a01200..ca6b9e5e4e1 100644 --- a/ext/oci8/tests/lob_004.phpt +++ b/ext/oci8/tests/lob_004.phpt @@ -78,3 +78,28 @@ bool(true) string(4) "strt" string(8) "strtstrt" Done +--UEXPECTF-- +object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) +} +int(4) +bool(true) +int(3) +bool(true) +array(2) { + [0]=> + object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) + } + [u"BLOB"]=> + object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) + } +} +bool(true) +string(4) "strt" +string(8) "strtstrt" +Done diff --git a/ext/oci8/tests/lob_005.phpt b/ext/oci8/tests/lob_005.phpt index e1ac6e5340f..2ddfc577e47 100644 --- a/ext/oci8/tests/lob_005.phpt +++ b/ext/oci8/tests/lob_005.phpt @@ -50,3 +50,18 @@ array(2) { } bool(true) Done +--UEXPECTF-- +array(2) { + [0]=> + object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) + } + [u"BLOB"]=> + object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) + } +} +bool(true) +Done diff --git a/ext/oci8/tests/lob_006.phpt b/ext/oci8/tests/lob_006.phpt index 3192ebc906f..58e6fb40a9a 100644 Binary files a/ext/oci8/tests/lob_006.phpt and b/ext/oci8/tests/lob_006.phpt differ diff --git a/ext/oci8/tests/lob_007.phpt b/ext/oci8/tests/lob_007.phpt index 1fe63092c63..4928e1f7c87 100644 --- a/ext/oci8/tests/lob_007.phpt +++ b/ext/oci8/tests/lob_007.phpt @@ -64,3 +64,26 @@ array(2) { int(7000) int(7000) Done +--UEXPECTF-- +object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) +} +int(0) +int(7000) +int(7000) +array(2) { + [0]=> + object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) + } + [u"BLOB"]=> + object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) + } +} +int(7000) +int(7000) +Done diff --git a/ext/oci8/tests/lob_008.phpt b/ext/oci8/tests/lob_008.phpt index a36bb4a3402..bc8e87b4b30 100644 --- a/ext/oci8/tests/lob_008.phpt +++ b/ext/oci8/tests/lob_008.phpt @@ -63,3 +63,23 @@ array(2) { } int(7000) Done +--UEXPECTF-- +object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) +} +int(7000) +array(2) { + [0]=> + object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) + } + [u"BLOB"]=> + object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) + } +} +int(7000) +Done diff --git a/ext/oci8/tests/lob_009.phpt b/ext/oci8/tests/lob_009.phpt index b9f7401128e..21df6a7b969 100644 --- a/ext/oci8/tests/lob_009.phpt +++ b/ext/oci8/tests/lob_009.phpt @@ -67,3 +67,30 @@ file for test lob_009.phpt " Done +--UEXPECTF-- +object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) +} +bool(true) +bool(true) +array(2) { + [0]=> + object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) + } + [u"BLOB"]=> + object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) + } +} +string(43) "this +is +a +test +file for +test lob_009.phpt +" +Done diff --git a/ext/oci8/tests/lob_011.phpt b/ext/oci8/tests/lob_011.phpt index b074e1730ef..0b7f520d9d1 100644 --- a/ext/oci8/tests/lob_011.phpt +++ b/ext/oci8/tests/lob_011.phpt @@ -76,3 +76,14 @@ array(2) { string(32) "some string here. string, I said" } Done +--UEXPECT-- +int(32) +bool(true) +string(32) "some string here. string, I said" +array(2) { + [0]=> + string(32) "some string here. string, I said" + [u"BLOB"]=> + string(32) "some string here. string, I said" +} +Done diff --git a/ext/oci8/tests/lob_015.phpt b/ext/oci8/tests/lob_015.phpt index 297d5b49718..e92383b853f 100644 --- a/ext/oci8/tests/lob_015.phpt +++ b/ext/oci8/tests/lob_015.phpt @@ -51,3 +51,20 @@ object(OCI-Lob)#%d (1) { resource(%d) of type (oci8 descriptor) } Done +--UEXPECTF-- +Warning: oci_new_descriptor() expects at most 2 parameters, 5 given in %s on line %d + +Warning: oci_bind_by_name() expects at most 5 parameters, 6 given in %s on line %d + +Warning: oci_bind_by_name() expects at most 5 parameters, 7 given in %s on line %d + +Warning: oci_bind_by_name() expects at least 3 parameters, 2 given in %s on line %d + +Warning: oci_bind_by_name() expects at least 3 parameters, 1 given in %s on line %d + +Warning: oci_execute(): ORA-00932: inconsistent datatypes: expected NUMBER got BLOB in %s on line %d +object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) +} +Done diff --git a/ext/oci8/tests/lob_016.phpt b/ext/oci8/tests/lob_016.phpt index 642e7195ef4..fdb7374ccf5 100644 --- a/ext/oci8/tests/lob_016.phpt +++ b/ext/oci8/tests/lob_016.phpt @@ -65,3 +65,19 @@ array(2) { string(5) "first" string(6) "second" Done +--UEXPECTF-- +array(2) { + [u"LOB_1"]=> + object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) + } + [u"LOB_2"]=> + object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) + } +} +string(5) "first" +string(6) "second" +Done diff --git a/ext/oci8/tests/lob_017.phpt b/ext/oci8/tests/lob_017.phpt index ed12cc46858..8ab0dc459e2 100644 --- a/ext/oci8/tests/lob_017.phpt +++ b/ext/oci8/tests/lob_017.phpt @@ -67,3 +67,19 @@ array(2) { string(5) "first" string(6) "second" Done +--UEXPECTF-- +array(2) { + [u"LOB_1"]=> + object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) + } + [u"LOB_2"]=> + object(OCI-Lob)#%d (1) { + [u"descriptor"]=> + resource(%d) of type (oci8 descriptor) + } +} +string(5) "first" +string(6) "second" +Done diff --git a/ext/oci8/tests/lob_019.phpt b/ext/oci8/tests/lob_019.phpt index fb9a3c8188b..d972cd792ae 100644 Binary files a/ext/oci8/tests/lob_019.phpt and b/ext/oci8/tests/lob_019.phpt differ diff --git a/ext/oci8/tests/lob_020.phpt b/ext/oci8/tests/lob_020.phpt index edd0f02490f..9110e759d63 100644 Binary files a/ext/oci8/tests/lob_020.phpt and b/ext/oci8/tests/lob_020.phpt differ diff --git a/ext/oci8/tests/privileged_connect.phpt b/ext/oci8/tests/privileged_connect.phpt index 39122240a7e..dd4e5d7c871 100644 --- a/ext/oci8/tests/privileged_connect.phpt +++ b/ext/oci8/tests/privileged_connect.phpt @@ -23,3 +23,12 @@ Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d Warning: oci_connect() expects parameter 5 to be long, string given in %s on line %d Done +--UEXPECTF-- +Warning: oci_connect(): Privileged connect is disabled. Enable oci8.privileged_connect to be able to connect as SYSOPER or SYSDBA in %s on line %d + +Warning: oci_connect(): Privileged connect is disabled. Enable oci8.privileged_connect to be able to connect as SYSOPER or SYSDBA in %s on line %d + +Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d + +Warning: oci_connect() expects parameter 5 to be long, Unicode string given in %s on line %d +Done diff --git a/ext/oci8/tests/select_null.phpt b/ext/oci8/tests/select_null.phpt index 87c5b815fd2..720d8677316 100644 --- a/ext/oci8/tests/select_null.phpt +++ b/ext/oci8/tests/select_null.phpt @@ -23,3 +23,11 @@ array(2) { NULL } Done +--UEXPECT-- +array(2) { + [0]=> + NULL + [u"NULL"]=> + NULL +} +Done diff --git a/ext/oci8/tests/statement_cache.phpt b/ext/oci8/tests/statement_cache.phpt index e7c8911e889..f736054141d 100644 --- a/ext/oci8/tests/statement_cache.phpt +++ b/ext/oci8/tests/statement_cache.phpt @@ -33,3 +33,17 @@ array(2) { string(1) "4" } Done +--UEXPECTF-- +array(2) { + [0]=> + string(1) "4" + [u"1+3"]=> + string(1) "4" +} +array(2) { + [0]=> + string(1) "4" + [u"1+3"]=> + string(1) "4" +} +Done