From 9a0ec35fa3db78e7a5575978984842bcad8de0d1 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Sat, 8 Dec 2018 20:12:43 +1100 Subject: [PATCH] Don't skip with 18c DB --- ext/oci8/tests/driver_name.phpt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/oci8/tests/driver_name.phpt b/ext/oci8/tests/driver_name.phpt index bc42ad234d..509e5f471c 100644 --- a/ext/oci8/tests/driver_name.phpt +++ b/ext/oci8/tests/driver_name.phpt @@ -8,9 +8,9 @@ if (strcasecmp($user, "system") && strcasecmp($user, "sys")) die("skip needs to if ($test_drcp) die("skip as Output might vary with DRCP"); preg_match('/.*Release ([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches); -if (!(isset($matches[0]) && +if (!(isset($matches[0]) && ($matches[1] > 12 || ($matches[1] == 12 && $matches[2] == 1 && $matches[3] >= 0 - && $matches[4] >= 2) || ($matches[1] == 12 && $matches[2] > 1))) { + && $matches[4] >= 2) || ($matches[1] == 12 && $matches[2] > 1)))) { die("skip test expected to work only with Oracle 12.1.0.2 database or its later patchsets"); } @@ -57,11 +57,11 @@ function get_attr($conn) ?> --EXPECT-- **Test 1.1 - Default values for the attribute ************** -The value of DRIVER_NAME is PHP OCI8 : 2.1.8 +The value of DRIVER_NAME is PHP OCI8 : 2.1.9 ***Test 1.2 - Get the values from different connections ************** Testing with oci_pconnect() -The value of DRIVER_NAME is PHP OCI8 : 2.1.8 +The value of DRIVER_NAME is PHP OCI8 : 2.1.9 Testing with oci_new_connect() -The value of DRIVER_NAME is PHP OCI8 : 2.1.8 +The value of DRIVER_NAME is PHP OCI8 : 2.1.9 Done -- 2.40.0