summaryrefslogtreecommitdiff
path: root/ext/oci8/tests/bind_char_3.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/oci8/tests/bind_char_3.phpt')
-rw-r--r--ext/oci8/tests/bind_char_3.phpt10
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/oci8/tests/bind_char_3.phpt b/ext/oci8/tests/bind_char_3.phpt
index a459f616b2..25115836df 100644
--- a/ext/oci8/tests/bind_char_3.phpt
+++ b/ext/oci8/tests/bind_char_3.phpt
@@ -4,9 +4,13 @@ PL/SQL oci_bind_by_name with SQLT_AFC aka CHAR to CHAR parameter
<?php
if (!extension_loaded('oci8')) die ("skip no oci8 extension");
require(dirname(__FILE__)."/connect.inc");
-if (preg_match('/Release 1[01]\.2\./', oci_server_version($c), $matches) !== 1) {
- die("skip expected output only valid when using Oracle 10gR2 or 11gR2 databases");
-} else if (preg_match('/^11\./', oci_client_version()) != 1) {
+// The bind buffer size edge cases seem to change each DB version.
+if (preg_match('/Release 10\.2\./', oci_server_version($c), $matches) !== 1) {
+ if (preg_match('/Release 11\.2\.0\.2/', oci_server_version($c), $matches) !== 2) {
+ die("skip expected output only valid when using Oracle 10gR2 or 11.2.0.2 databases");
+ }
+}
+if (preg_match('/^11\./', oci_client_version()) != 1) {
die("skip test expected to work only with Oracle 11g or greater version of client");
}
?>