From 491c43cf2e969b03d39e459b9c9f4ab6e8282e91 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 6 Dec 2005 19:15:02 +0000 Subject: nuke erroneous --ENV-- tag add new tests for oci_bind_array_by_name() --- ext/oci8/tests/array_bind_date.phpt | 74 +++++++++++++++++++++ ext/oci8/tests/array_bind_float.phpt | 74 +++++++++++++++++++++ ext/oci8/tests/array_bind_int.phpt | 74 +++++++++++++++++++++ ext/oci8/tests/array_bind_str.phpt | 74 +++++++++++++++++++++ ext/oci8/tests/bind_empty.phpt | 7 +- ext/oci8/tests/bug26133.phpt | 7 +- ext/oci8/tests/bug27303.phpt | 7 +- ext/oci8/tests/bug27303_2.phpt | 7 +- ext/oci8/tests/bug27303_3.phpt | 7 +- ext/oci8/tests/bug27303_4.phpt | 7 +- ext/oci8/tests/bug32325.phpt | 7 +- ext/oci8/tests/close.phpt | 7 +- ext/oci8/tests/coll_001.phpt | 8 +-- ext/oci8/tests/coll_002.phpt | 8 +-- ext/oci8/tests/coll_002_func.phpt | 8 +-- ext/oci8/tests/coll_003.phpt | 8 +-- ext/oci8/tests/coll_003_func.phpt | 8 +-- ext/oci8/tests/coll_004.phpt | 8 +-- ext/oci8/tests/coll_004_func.phpt | 8 +-- ext/oci8/tests/coll_005.phpt | 8 +-- ext/oci8/tests/coll_006.phpt | 8 +-- ext/oci8/tests/coll_006_func.phpt | 8 +-- ext/oci8/tests/coll_007.phpt | 8 +-- ext/oci8/tests/coll_008.phpt | 8 +-- ext/oci8/tests/coll_009.phpt | 8 +-- ext/oci8/tests/coll_009_func.phpt | 8 +-- ext/oci8/tests/coll_010.phpt | 8 +-- ext/oci8/tests/coll_010_func.phpt | 8 +-- ext/oci8/tests/coll_011.phpt | 8 +-- ext/oci8/tests/coll_011_func.phpt | 8 +-- ext/oci8/tests/coll_012.phpt | 8 +-- ext/oci8/tests/coll_012_func.phpt | 8 +-- ext/oci8/tests/coll_013.phpt | 8 +-- ext/oci8/tests/coll_013_func.phpt | 8 +-- ext/oci8/tests/coll_014.phpt | 8 +-- ext/oci8/tests/coll_014_func.phpt | 8 +-- ext/oci8/tests/coll_015.phpt | 8 +-- ext/oci8/tests/coll_015_func.phpt | 8 +-- ext/oci8/tests/coll_016.phpt | 8 +-- ext/oci8/tests/coll_016_func.phpt | 8 +-- ext/oci8/tests/coll_017.phpt | 8 +-- ext/oci8/tests/coll_017_func.phpt | 8 +-- ext/oci8/tests/commit.phpt | 7 +- ext/oci8/tests/commit_old.phpt | 7 +- ext/oci8/tests/connect.phpt | 7 +- ext/oci8/tests/connect_1.phpt | 7 +- ext/oci8/tests/connect_1_old.phpt | 7 +- ext/oci8/tests/connect_old.phpt | 7 +- ext/oci8/tests/connect_without_oracle_home.phpt | 2 +- .../tests/connect_without_oracle_home_old.phpt | 2 +- ext/oci8/tests/cursor_bind_err.phpt | 7 +- ext/oci8/tests/cursors.phpt | 7 +- ext/oci8/tests/cursors_old.phpt | 7 +- ext/oci8/tests/debug.phpt | 7 +- ext/oci8/tests/default_prefetch.phpt | 7 +- ext/oci8/tests/default_prefetch1.phpt | 7 +- ext/oci8/tests/default_prefetch2.phpt | 7 +- ext/oci8/tests/define.phpt | 7 +- ext/oci8/tests/define_old.phpt | 7 +- ext/oci8/tests/error.phpt | 7 +- ext/oci8/tests/error1.phpt | 7 +- ext/oci8/tests/error_old.phpt | 7 +- ext/oci8/tests/exec_fetch.phpt | 7 +- ext/oci8/tests/fetch.phpt | 7 +- ext/oci8/tests/fetch_all.phpt | 7 +- ext/oci8/tests/fetch_array.phpt | 7 +- ext/oci8/tests/fetch_assoc.phpt | 7 +- ext/oci8/tests/fetch_into.phpt | 7 +- ext/oci8/tests/fetch_into1.phpt | 7 +- ext/oci8/tests/fetch_into2.phpt | 7 +- ext/oci8/tests/fetch_object.phpt | 7 +- ext/oci8/tests/fetch_row.phpt | 7 +- ext/oci8/tests/field_funcs.phpt | 7 +- ext/oci8/tests/field_funcs_old.phpt | 7 +- ext/oci8/tests/lob_001.phpt | Bin 1415 -> 1257 bytes ext/oci8/tests/lob_002.phpt | 7 +- ext/oci8/tests/lob_003.phpt | Bin 1787 -> 1629 bytes ext/oci8/tests/lob_004.phpt | 7 +- ext/oci8/tests/lob_005.phpt | 7 +- ext/oci8/tests/lob_006.phpt | Bin 1853 -> 1695 bytes ext/oci8/tests/lob_007.phpt | 7 +- ext/oci8/tests/lob_008.phpt | 7 +- ext/oci8/tests/lob_009.phpt | 7 +- ext/oci8/tests/lob_010.phpt | 7 +- ext/oci8/tests/lob_011.phpt | 7 +- ext/oci8/tests/lob_012.phpt | 7 +- ext/oci8/tests/lob_013.phpt | 7 +- ext/oci8/tests/lob_014.phpt | 7 +- ext/oci8/tests/lob_015.phpt | 7 +- ext/oci8/tests/lob_016.phpt | 7 +- ext/oci8/tests/lob_017.phpt | 7 +- ext/oci8/tests/lob_018.phpt | 7 +- ext/oci8/tests/lob_temp.phpt | 7 +- ext/oci8/tests/lob_temp1.phpt | 7 +- ext/oci8/tests/num.phpt | 7 +- ext/oci8/tests/oci_execute_segfault.phpt | 7 +- ext/oci8/tests/old_oci_close.phpt | 7 +- ext/oci8/tests/old_oci_close1.phpt | 7 +- ext/oci8/tests/password.phpt | 7 +- ext/oci8/tests/password_new.phpt | 7 +- ext/oci8/tests/password_old.phpt | 7 +- ext/oci8/tests/persistent.phpt | 8 +-- ext/oci8/tests/prefetch.phpt | 7 +- ext/oci8/tests/prefetch_old.phpt | 7 +- ext/oci8/tests/privileged_connect.phpt | 8 +-- ext/oci8/tests/privileged_connect1.phpt | 10 +-- ext/oci8/tests/serverversion.phpt | 7 +- ext/oci8/tests/statement_cache.phpt | 7 +- ext/oci8/tests/statement_type.phpt | 7 +- ext/oci8/tests/statement_type_old.phpt | 7 +- ext/oci8/tests/uncommitted.phpt | 8 +-- 111 files changed, 401 insertions(+), 649 deletions(-) create mode 100644 ext/oci8/tests/array_bind_date.phpt create mode 100644 ext/oci8/tests/array_bind_float.phpt create mode 100644 ext/oci8/tests/array_bind_int.phpt create mode 100644 ext/oci8/tests/array_bind_str.phpt (limited to 'ext/oci8') diff --git a/ext/oci8/tests/array_bind_date.phpt b/ext/oci8/tests/array_bind_date.phpt new file mode 100644 index 0000000000..63da558f91 --- /dev/null +++ b/ext/oci8/tests/array_bind_date.phpt @@ -0,0 +1,74 @@ +--TEST-- +oci_bind_array_by_name() and SQLT_ODT +--SKIPIF-- + +--FILE-- + +--EXPECT-- +array(5) { + [0]=> + string(9) "05-NOV-05" + [1]=> + string(9) "26-OCT-17" + [2]=> + string(9) "21-AUG-91" + [3]=> + string(9) "10-DEC-80" + [4]=> + string(9) "06-DEC-05" +} +Done diff --git a/ext/oci8/tests/array_bind_float.phpt b/ext/oci8/tests/array_bind_float.phpt new file mode 100644 index 0000000000..1aafb24317 --- /dev/null +++ b/ext/oci8/tests/array_bind_float.phpt @@ -0,0 +1,74 @@ +--TEST-- +oci_bind_array_by_name() and SQLT_FLT +--SKIPIF-- + +--FILE-- + +--EXPECT-- +array(5) { + [0]=> + float(5.9999) + [1]=> + float(4.2123) + [2]=> + float(3.4234) + [3]=> + float(2.5658) + [4]=> + float(1.243) +} +Done diff --git a/ext/oci8/tests/array_bind_int.phpt b/ext/oci8/tests/array_bind_int.phpt new file mode 100644 index 0000000000..3c8bfd4f57 --- /dev/null +++ b/ext/oci8/tests/array_bind_int.phpt @@ -0,0 +1,74 @@ +--TEST-- +oci_bind_array_by_name() and SQLT_INT +--SKIPIF-- + +--FILE-- + +--EXPECT-- +array(5) { + [0]=> + int(5) + [1]=> + int(4) + [2]=> + int(3) + [3]=> + int(2) + [4]=> + int(1) +} +Done diff --git a/ext/oci8/tests/array_bind_str.phpt b/ext/oci8/tests/array_bind_str.phpt new file mode 100644 index 0000000000..c8e1e0cdb5 --- /dev/null +++ b/ext/oci8/tests/array_bind_str.phpt @@ -0,0 +1,74 @@ +--TEST-- +oci_bind_array_by_name() and SQLT_AVC +--SKIPIF-- + +--FILE-- + +--EXPECT-- +array(5) { + [0]=> + string(4) "five" + [1]=> + string(4) "four" + [2]=> + string(5) "three" + [3]=> + string(3) "two" + [4]=> + string(3) "one" +} +Done diff --git a/ext/oci8/tests/bind_empty.phpt b/ext/oci8/tests/bind_empty.phpt index 4088616055..4aa0521c4d 100644 --- a/ext/oci8/tests/bind_empty.phpt +++ b/ext/oci8/tests/bind_empty.phpt @@ -1,12 +1,7 @@ --TEST-- binding empty values ---SKIPIF-- +---SKIPIF-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- --FILE-- --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --INI-- oci8.default_prefetch=20 --FILE-- diff --git a/ext/oci8/tests/default_prefetch1.phpt b/ext/oci8/tests/default_prefetch1.phpt index 8f43450c84..f34f21d343 100644 --- a/ext/oci8/tests/default_prefetch1.phpt +++ b/ext/oci8/tests/default_prefetch1.phpt @@ -1,12 +1,7 @@ --TEST-- oci8.default_prefetch ini option ---SKIPIF-- +---SKIPIF-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --INI-- oci8.default_prefetch=100 --FILE-- diff --git a/ext/oci8/tests/default_prefetch2.phpt b/ext/oci8/tests/default_prefetch2.phpt index 8a0939cdc1..d3d91d71ee 100644 --- a/ext/oci8/tests/default_prefetch2.phpt +++ b/ext/oci8/tests/default_prefetch2.phpt @@ -1,12 +1,7 @@ --TEST-- oci8.default_prefetch ini option ---SKIPIF-- +---SKIPIF-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --INI-- oci8.default_prefetch=100 --FILE-- diff --git a/ext/oci8/tests/define.phpt b/ext/oci8/tests/define.phpt index dde5d575b3..3c5a7da417 100644 --- a/ext/oci8/tests/define.phpt +++ b/ext/oci8/tests/define.phpt @@ -1,12 +1,7 @@ --TEST-- oci_define_by_name() ---SKIPIF-- +---SKIPIF-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- --INI-- oci8.old_oci_close_semantics=1 ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- --INI-- oci8.old_oci_close_semantics=0 ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- --INI-- oci8.privileged_connect=1 ---SKIPIF-- - ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -"; --FILE-- ---ENV-- -return " -ORACLE_HOME=".(isset($_ENV['ORACLE_HOME']) ? $_ENV['ORACLE_HOME'] : '')." -NLS_LANG=".(isset($_ENV['NLS_LANG']) ? $_ENV['NLS_LANG'] : '')." -TNS_ADMIN=".(isset($_ENV['TNS_ADMIN']) ? $_ENV['TNS_ADMIN'] : '')." -"; --FILE--