From 93ae33c8a4ef602946bb25334d67323178e82050 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 10 Jul 2006 20:48:04 +0000 Subject: [PATCH] add Unicode EXPECT tags --- ext/oci8/tests/array_bind_002.phpt | 17 ++ ext/oci8/tests/bind_long.phpt | 4 + ext/oci8/tests/bind_long_raw.phpt | 4 + ext/oci8/tests/bind_raw.phpt | 4 + ext/oci8/tests/coll_001.phpt | 9 + ext/oci8/tests/coll_002.phpt | 10 ++ ext/oci8/tests/coll_002_func.phpt | 10 ++ ext/oci8/tests/coll_005.phpt | 9 + ext/oci8/tests/coll_006.phpt | 10 ++ ext/oci8/tests/coll_006_func.phpt | 10 ++ ext/oci8/tests/commit.phpt | 80 +++++++++ ext/oci8/tests/commit_old.phpt | 80 +++++++++ ext/oci8/tests/cursors.phpt | 19 ++ ext/oci8/tests/cursors_old.phpt | 18 ++ ext/oci8/tests/descriptors.phpt | 9 + ext/oci8/tests/error.phpt | 17 ++ ext/oci8/tests/error1.phpt | 14 ++ ext/oci8/tests/error_old.phpt | 17 ++ ext/oci8/tests/fetch_all.phpt | 98 +++++++++++ ext/oci8/tests/fetch_array.phpt | 230 +++++++++++++++++++++++++ ext/oci8/tests/fetch_assoc.phpt | 38 ++++ ext/oci8/tests/fetch_into.phpt | 32 ++++ ext/oci8/tests/fetch_into1.phpt | 132 ++++++++++++++ ext/oci8/tests/fetch_object.phpt | 38 ++++ ext/oci8/tests/lob_001.phpt | Bin 1305 -> 1562 bytes ext/oci8/tests/lob_002.phpt | 18 ++ ext/oci8/tests/lob_003.phpt | Bin 1628 -> 2135 bytes ext/oci8/tests/lob_004.phpt | 25 +++ ext/oci8/tests/lob_005.phpt | 15 ++ ext/oci8/tests/lob_006.phpt | Bin 1694 -> 2135 bytes ext/oci8/tests/lob_007.phpt | 23 +++ ext/oci8/tests/lob_008.phpt | 20 +++ ext/oci8/tests/lob_009.phpt | 27 +++ ext/oci8/tests/lob_011.phpt | 11 ++ ext/oci8/tests/lob_015.phpt | 17 ++ ext/oci8/tests/lob_016.phpt | 16 ++ ext/oci8/tests/lob_017.phpt | 16 ++ ext/oci8/tests/lob_019.phpt | Bin 1548 -> 1951 bytes ext/oci8/tests/lob_020.phpt | Bin 1597 -> 2043 bytes ext/oci8/tests/privileged_connect.phpt | 9 + ext/oci8/tests/select_null.phpt | 8 + ext/oci8/tests/statement_cache.phpt | 14 ++ 42 files changed, 1128 insertions(+) diff --git a/ext/oci8/tests/array_bind_002.phpt b/ext/oci8/tests/array_bind_002.phpt index 4c76df42f9..f0c3f2118e 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 ddbc11eb69..c9e9c58d68 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 2a9962eace..e4a8d6e297 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 c9087e552b..7391a22528 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 57d3cf1b47..88d1217ea0 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 6d30519897..8378cf1efa 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 58e641ee24..952b9d7230 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 0f40069964..86a3bc4a3c 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 cf258cbe34..2288ed3f70 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 56707d6087..26f6a150c9 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 3bef318c85..9e409f34c6 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 196e0650cc..a8a1c40e13 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 22c89c9c54..865c15ecc0 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 cf3b5f9575..13b39f1fb4 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 8be4f3a06d..1675fd1cab 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 743820f901..c38432c90a 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 25a3f09e92..db7670769e 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 a6889c897a..2b2c279214 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 5d3738b892..a3722c4788 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 e2f32483d5..62d5fcbe8f 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 7dacf2e5b2..0c9e574751 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 379f5fc14e..8bd93beaf0 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 263590d140..f7a1b6939d 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 57b7fc03d8..ce78aa47d5 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 cbcb92e7ec76c4fc2245fd899ebf70c125d0d472..569a85cbcd85fbe30dd8053fb54823f1153dc233 100644 GIT binary patch delta 27 hcmbQqHH&A1BrCJ7Zs=rL7B$Aw$<8bbf#eewQvhad2fF|O delta 7 OcmbQmGm~qBBr5<3@d6kC diff --git a/ext/oci8/tests/lob_002.phpt b/ext/oci8/tests/lob_002.phpt index ebbef1815e..ab53b2805c 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 8a492d16ca9b89dede69c4f8dc5eed4fb1748030..5704548dc310cecd5f471e251ffe38480535d36f 100644 GIT binary patch delta 43 tcmcb^b6sFV3>&kqZs_C;7B$Aw$$c!dfTRYi6Ohbe)dI8aCtqgm1OO}O4RHVf delta 7 OcmcaEaEE6@3>yFqk^ + 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 e1ac6e5340..2ddfc577e4 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 3192ebc906f5fd7a29f4cbfb397e53b1267ffee1..58e6fb40a9a93e252b6042ea73589f85084356b8 100644 GIT binary patch delta 48 zcmbQodtG3|JT_)s-O$NzSkxFxCkwGI29k + 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 a36bb4a340..bc8e87b4b3 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 b9f7401128..21df6a7b96 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 b074e1730e..0b7f520d9d 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 297d5b4971..e92383b853 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 642e7195ef..fdb7374ccf 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 ed12cc4685..8ab0dc459e 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 fb9a3c8188b9ea5013543e111b8111f0ec75250f..d972cd792aea62ec1f1d57a17f6edb54eb8f5e96 100644 GIT binary patch delta 47 ycmeC-na{t0hmBcRH*|6XiyC9;%Kym`BJ(q$)bg7b)kH3@BBvuu$SPcL^77bVc delta 7 OcmbQw-@~(khYbJ;)B*_r diff --git a/ext/oci8/tests/lob_020.phpt b/ext/oci8/tests/lob_020.phpt index edd0f02490fea26071ea3cc180de03c403b1d8ec..9110e759d6342572ecf8936132e6aecf2b8ff969 100644 GIT binary patch delta 43 tcmdnX^P7KzEgQ40Zs_DT7B$Aw$!l2ZfTR|y6Ohbd)dI8aCtqdF001lW4P5{L delta 7 Ocmey(zn5o&EgJw0uL8#a diff --git a/ext/oci8/tests/privileged_connect.phpt b/ext/oci8/tests/privileged_connect.phpt index 39122240a7..dd4e5d7c87 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 87c5b815fd..720d867731 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 e7c8911e88..f736054141 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 -- 2.40.0