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

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

Script

<?php 
if (!extension_loaded('oci8')) die("skip no oci8 extension"); 
ob_start();
phpinfo(INFO_MODULES);
$phpinfo ob_get_clean();
$ov preg_match('/Compile-time ORACLE_HOME/'$phpinfo);
if (
$ov !== 1) {
    die (
"skip Test only valid when OCI8 is built with an ORACLE_HOME");
}
preg_match('/^([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)/'oci_client_version(), $matches);
if (!isset(
$matches[0]) || !($matches[1] == 10 && $matches[2] == 2)) {
    die (
"skip tests a feature that works only with Oracle 10gR2 client");
}
?>

Reason

tests a feature that works only with Oracle 10gR2 client

 

Generated at Mon, 20 Oct 2014 09:57:58 +0000 (26 hours ago)

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