PHP  
 PHP_7_0
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Skip Report for ext/oci8/tests/driver_name.phpt

Script

<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); 

require(
dirname(__FILE__)."/connect.inc");
if (
strcasecmp($user"system") && strcasecmp($user"sys")) die("skip needs to be run as a DBA user");
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]) &&
     (
$matches[1] == 12 && $matches[2] == && $matches[3] >= 0
     
&& $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");
}

preg_match('/^([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)/'oci_client_version(), $matches);
if (!(isset(
$matches[0]) && ($matches[1] == 11 && $matches[2] >= 2) || ($matches[1] > 11))) {
    die(
"skip test expected to work only with Oracle 11.2 or greater version of client");
}

?>

Reason

test expected to work only with Oracle 12.1.0.2 database or its later patchsets

 

Generated at Wed, 20 Sep 2017 13:49:37 +0000 (4 days ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.