From: Christopher Jones Date: Fri, 2 Oct 2009 04:19:48 +0000 (+0000) Subject: Fix skipifs to accept Oracle 11.2 X-Git-Tag: php-5.4.0alpha1~191^2~2551 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c442f8471d6f977dfd65b11ca68db62c797034f;p=php Fix skipifs to accept Oracle 11.2 --- diff --git a/ext/oci8/tests/bind_char_1.phpt b/ext/oci8/tests/bind_char_1.phpt index d9c95eb004..db176974f6 100644 --- a/ext/oci8/tests/bind_char_1.phpt +++ b/ext/oci8/tests/bind_char_1.phpt @@ -5,9 +5,9 @@ SELECT oci_bind_by_name with SQLT_AFC aka CHAR if (!extension_loaded('oci8')) die ("skip no oci8 extension"); require(dirname(__FILE__)."/connect.inc"); $sv = oci_server_version($c); -$sv = preg_match('/11.1/', $sv, $matches); +$sv = preg_match('/Release 1[12]\./', $sv, $matches); if ($sv !== 1) { - die ("skip expected output only valid when using Oracle 11g database"); + die ("skip expected output only valid when using Oracle 11g+ database"); } ?> --FILE-- diff --git a/ext/oci8/tests/bind_char_2.phpt b/ext/oci8/tests/bind_char_2.phpt index 1a8f782c2a..77fa5772d3 100644 --- a/ext/oci8/tests/bind_char_2.phpt +++ b/ext/oci8/tests/bind_char_2.phpt @@ -5,9 +5,9 @@ SELECT oci_bind_by_name with SQLT_AFC aka CHAR and dates if (!extension_loaded('oci8')) die ("skip no oci8 extension"); require(dirname(__FILE__)."/connect.inc"); $sv = oci_server_version($c); -$sv = preg_match('/11.1/', $sv, $matches); +$sv = preg_match('/Release 1[12]\./', $sv, $matches); if ($sv !== 1) { - die ("skip expected output only valid when using Oracle 11g database"); + die ("skip expected output only valid when using Oracle 11g+ database"); } ?> --FILE-- diff --git a/ext/oci8/tests/bind_char_3.phpt b/ext/oci8/tests/bind_char_3.phpt index 34e30858e3..43dd44e419 100644 --- a/ext/oci8/tests/bind_char_3.phpt +++ b/ext/oci8/tests/bind_char_3.phpt @@ -5,9 +5,9 @@ PL/SQL oci_bind_by_name with SQLT_AFC aka CHAR to CHAR parameter if (!extension_loaded('oci8')) die ("skip no oci8 extension"); require(dirname(__FILE__)."/connect.inc"); $sv = oci_server_version($c); -$sv = preg_match('/11.1/', $sv, $matches); +$sv = preg_match('/Release 1[12]\./', $sv, $matches); if ($sv !== 1) { - die ("skip expected output only valid when using Oracle 11g database"); + die ("skip expected output only valid when using Oracle 11g+ database"); } ?> --FILE-- diff --git a/ext/oci8/tests/bind_char_4.phpt b/ext/oci8/tests/bind_char_4.phpt index 23daa08f81..fec95774df 100644 --- a/ext/oci8/tests/bind_char_4.phpt +++ b/ext/oci8/tests/bind_char_4.phpt @@ -5,9 +5,9 @@ PL/SQL oci_bind_by_name with SQLT_AFC aka CHAR to VARCHAR2 parameter if (!extension_loaded('oci8')) die ("skip no oci8 extension"); require(dirname(__FILE__)."/connect.inc"); $sv = oci_server_version($c); -$sv = preg_match('/11.1/', $sv, $matches); +$sv = preg_match('/Release 1[12]\./', $sv, $matches); if ($sv !== 1) { - die ("skip expected output only valid when using Oracle 11g database"); + die ("skip expected output only valid when using Oracle 11g+ database"); } ?> --FILE-- diff --git a/ext/oci8/tests/bug27303.phpt b/ext/oci8/tests/bug27303.phpt index a89101b499..af44bad033 100644 --- a/ext/oci8/tests/bug27303.phpt +++ b/ext/oci8/tests/bug27303.phpt @@ -5,9 +5,9 @@ Bug #27303 (OCIBindByName binds numeric PHP values as characters) if (!extension_loaded('oci8')) die ("skip no oci8 extension"); require(dirname(__FILE__)."/connect.inc"); $sv = oci_server_version($c); -$sv = preg_match('/11.1/', $sv, $matches); +$sv = preg_match('/Release 1[12]\./', $sv, $matches); if ($sv !== 1) { - die ("skip expected output only valid when using Oracle 11g database"); + die ("skip expected output only valid when using Oracle 11g+ database"); } ?> --FILE-- @@ -57,6 +57,8 @@ foreach ($create_st as $statement) { echo "Done\n"; ?> +--XFAIL-- +Bind length difference from PHP 5.3 due to character set differences. To be investiga --EXPECTF-- unicode(1) "1" unicode(1) "2" diff --git a/ext/oci8/tests/bug27303_2.phpt b/ext/oci8/tests/bug27303_2.phpt index 99157baceb..211551d442 100644 --- a/ext/oci8/tests/bug27303_2.phpt +++ b/ext/oci8/tests/bug27303_2.phpt @@ -5,9 +5,9 @@ Bug #27303 (OCIBindByName binds numeric PHP values as characters) if (!extension_loaded('oci8')) die ("skip no oci8 extension"); require(dirname(__FILE__)."/connect.inc"); $sv = oci_server_version($c); -$sv = preg_match('/11.1/', $sv, $matches); +$sv = preg_match('/Release 1[12]\./', $sv, $matches); if ($sv !== 1) { - die ("skip expected output only valid when using Oracle 11g database"); + die ("skip expected output only valid when using Oracle 11g+ database"); } ?> --FILE-- diff --git a/ext/oci8/tests/bug27303_4.phpt b/ext/oci8/tests/bug27303_4.phpt index 3138aed009..205104d7ed 100644 --- a/ext/oci8/tests/bug27303_4.phpt +++ b/ext/oci8/tests/bug27303_4.phpt @@ -5,9 +5,9 @@ Bug #27303 (OCIBindByName binds numeric PHP values as characters) if (!extension_loaded('oci8')) die ("skip no oci8 extension"); require(dirname(__FILE__)."/connect.inc"); $sv = oci_server_version($c); -$sv = preg_match('/11.1/', $sv, $matches); +$sv = preg_match('/Release 1[12]\./', $sv, $matches); if ($sv !== 1) { - die ("skip expected output only valid when using Oracle 11g database"); + die ("skip expected output only valid when using Oracle 11g+ database"); } ?> --FILE-- @@ -57,6 +57,8 @@ foreach ($create_st as $statement) { echo "Done\n"; ?> +--XFAIL-- +Bind length difference from PHP 5.3 due to character set differences. To be investigated --EXPECTF-- unicode(1) "1" unicode(1) "2"