Skip oci8 tests when no database is available (#11820)

Most oci8 tests fail out-of-the-box because a typical host won't have
an Oracle database instance available. Other database drivers like
mysqli and pgsql address this problem with an include file, inserted
into SKIPIF, that skips the test if no connection at all can be made.

This commits adds such a file (skipifconnectfailure.inc) for oci8, and
adds the corresponding SKIPIF to any tests that connect to a database.

Closes GH-11804

* ext/oci8/tests/lob_aliases.phpt: drop unnecessary SKIPIF.
This commit is contained in:
Michael Orlitzky 2023-07-31 10:19:31 -04:00 committed by GitHub
parent 82aa4253f1
commit 605c60cd5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
319 changed files with 627 additions and 18 deletions

View file

@ -2,6 +2,10 @@
oci_bind_array_by_name() and invalid values 1
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -2,6 +2,10 @@
oci_bind_array_by_name() and invalid values 2
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -4,6 +4,7 @@ oci_bind_array_by_name() and invalid values 3
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ oci_bind_array_by_name() and invalid values 4
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ oci_bind_array_by_name() and invalid values 5
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ oci_bind_array_by_name(), SQLT_CHR and default max_length
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -2,6 +2,10 @@
oci_bind_array_by_name() and invalid values 7
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -4,6 +4,7 @@ oci_bind_array_by_name() and invalid values 8
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -2,6 +2,10 @@
oci_bind_array_by_name() and invalid values 9
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -2,6 +2,10 @@
oci_bind_array_by_name() and invalid values 8
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -2,6 +2,10 @@
oci_bind_array_by_name(), SQLT_CHR, default max_length and empty array
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -2,6 +2,10 @@
oci_bind_array_by_name(), SQLT_CHR, default max_length and empty array
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -2,6 +2,10 @@
oci_bind_array_by_name(), SQLT_CHR, default max_length and empty array
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -4,6 +4,7 @@ oci_bind_array_by_name() and NUMBERs
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Unsupported type: oci_bind_array_by_name() and SQLT_BDOUBLE
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
if (!defined('SQLT_BDOUBLE')) die('skip SQLT_BDOUBLE type not available on older Oracle clients');

View file

@ -4,6 +4,7 @@ Unsupported type: oci_bind_array_by_name() and SQLT_BFLOAT
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
if (!defined('SQLT_BFLOAT')) die('skip SQLT_BFLOAT type not available on older Oracle clients');

View file

@ -4,6 +4,7 @@ oci_bind_array_by_name() and SQLT_ODT
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ oci_bind_array_by_name() and SQLT_ODT
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ oci_bind_array_by_name() and SQLT_FLT
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ oci_bind_array_by_name() and SQLT_FLT
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ oci_bind_array_by_name() and SQLT_INT
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ oci_bind_array_by_name() and SQLT_INT
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ oci_bind_array_by_name() and SQLT_CHR
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ oci_bind_array_by_name() and SQLT_CHR
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Unsupported type: oci_bind_array_by_name() and SQLT_UIN
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #47243 (Crash on exit with ZTS mode)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #47243 (Crash on exit with ZTS mode)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #47243 (Crash on exit with ZTS mode)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Basic PL/SQL "BOOLEAN" (SQLT_BOL) bind test
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
require(__DIR__.'/connect.inc');
preg_match('/.*Release ([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches);
if (!(isset($matches[0]) && $matches[1] >= 12)) {

View file

@ -4,6 +4,7 @@ SELECT oci_bind_by_name with SQLT_AFC aka CHAR
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
require(__DIR__."/connect.inc");
// The bind buffer size edge cases seem to change each DB version.
preg_match('/.*Release ([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches);

View file

@ -4,6 +4,7 @@ SELECT oci_bind_by_name with SQLT_AFC aka CHAR and dates
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
require(__DIR__."/connect.inc");
// The bind buffer size edge cases seem to change each DB version.
preg_match('/.*Release ([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches);

View file

@ -4,6 +4,7 @@ PL/SQL oci_bind_by_name with SQLT_AFC aka CHAR to CHAR parameter
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
require(__DIR__."/connect.inc");
// The bind buffer size edge cases seem to change each DB version.
preg_match('/.*Release ([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches);

View file

@ -4,6 +4,7 @@ PL/SQL oci_bind_by_name with SQLT_AFC aka CHAR to VARCHAR2 parameter
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
require(__DIR__."/connect.inc");
// The bind buffer size edge cases seem to change each DB version.
preg_match('/.*Release ([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches);

View file

@ -2,6 +2,10 @@
binding empty values
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -4,6 +4,7 @@ bind LONG field
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ bind LONG RAW field
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bind miscellaneous column types using default types
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -2,6 +2,10 @@
Bind miscellaneous column types and generating errors
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -2,6 +2,10 @@
Bind with NUMBER column variants
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--INI--
precision = 14
--FILE--

View file

@ -2,6 +2,10 @@
Bind with various WHERE conditions
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -4,6 +4,7 @@ bind RAW field
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ bind RAW field with OCI_B_BIN
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -2,6 +2,10 @@
Test ROWID bind
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -2,6 +2,10 @@
Bind tests with SQLT_AFC
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -2,6 +2,10 @@
Bind with SQLT_CHR
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -2,6 +2,10 @@
PL/SQL bind with SQLT_CHR
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -2,6 +2,10 @@
Bind with SQLT_INT
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -4,6 +4,7 @@ Bind with SQLT_NUM
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
preg_match('/^[[:digit:]]+/', oci_client_version(), $matches);
if (!(isset($matches[0]) && $matches[0] >= 12)) {
die("skip works only with Oracle 12c or greater version of Oracle client libraries");

View file

@ -2,6 +2,10 @@
Bind with various unsupported bind types
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -2,6 +2,10 @@
Bind with various unsupported 10g+ bind types
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -4,6 +4,7 @@ Bind with various bind types not supported by TimesTen
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => false, 'timesten' => true); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -2,6 +2,10 @@
Bug #26133 (ocifreedesc() segfault)
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -4,6 +4,7 @@ Bug #27303 (OCIBindByName binds numeric PHP values as characters)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
require(__DIR__."/connect.inc");
// The bind buffer size edge cases seem to change each DB version.
preg_match('/.*Release ([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches);

View file

@ -4,6 +4,7 @@ Bug #27303 (OCIBindByName binds numeric PHP values as characters)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
require(__DIR__."/connect.inc");
// The bind buffer size edge cases seem to change each DB version.
preg_match('/.*Release ([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches);

View file

@ -2,6 +2,10 @@
Bug #27303 (OCIBindByName binds numeric PHP values as characters)
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -4,6 +4,7 @@ Bug #27303 (OCIBindByName binds numeric PHP values as characters)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
require(__DIR__."/connect.inc");
// The bind buffer size edge cases seem to change each DB version.
preg_match('/.*Release ([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)*/', oci_server_version($c), $matches);

View file

@ -4,6 +4,7 @@ Bug #32325 (Cannot retrieve collection using OCI8)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #35973 (Error ORA-24806 occurs when trying to fetch a NCLOB field)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #36010 (Crash when executing SQL statement with lob parameter twice)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -2,6 +2,10 @@
Bug #36096 (oci_result() returns garbage after oci_fetch() failed)
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -2,6 +2,10 @@
Bug #36403 (oci_execute no longer supports OCI_DESCRIBE_ONLY)
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -4,6 +4,7 @@ Bug #37220 (LOB Type mismatch when using windows & oci8.dll)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #37581 (oci_bind_array_by_name clobbers input array when using SQLT_AFC, AVC
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -2,6 +2,10 @@
Bug #38161 (oci_bind_by_name() returns garbage when Oracle didn't set the variable)
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -4,6 +4,7 @@ Bug #38173 (Freeing nested cursors causes OCI8 to segfault)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #40078 (ORA-01405 when fetching NULL values using oci_bind_array_by_name())
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #40415 (Using oci_fetchall with nested cursors)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #41069 (Oracle crash with certain data over a DB-link when prefetch memory l
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
if (empty($dbase)) die ("skip requires network connection alias for DB link loopback");

View file

@ -4,6 +4,7 @@ Bug #42134 (Collection error for invalid collection name)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #42173 (TIMESTAMP and INTERVAL query and field functions)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,9 +4,10 @@ Bug #42496 (LOB fetch leaks cursors, eventually failing with ORA-1000 maximum op
oci8
--SKIPIF--
<?php
if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
?>
--FILE--
<?php

View file

@ -4,9 +4,10 @@ Bug #42496 (LOB fetch leaks cursors, eventually failing with ORA-1000 maximum op
oci8
--SKIPIF--
<?php
if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
?>
--FILE--
<?php

View file

@ -4,6 +4,7 @@ Bug #42841 (REF CURSOR and oci_new_cursor PHP crash)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #43492 (Nested cursor leaks)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #43492 (Nested cursor leaks after related bug #44206 fixed)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #43497 (OCI8 XML/getClobVal aka temporary LOBs leak UGA memory)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');

View file

@ -4,6 +4,7 @@ Bug #44008 (Incorrect usage of OCILob->close crashes PHP)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #44113 (New collection creation can fail with OCI-22303)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');

View file

@ -4,6 +4,7 @@ Bug #44206 (Test if selecting ref cursors leads to ORA-1000 maximum open cursors
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -2,6 +2,10 @@
Bug #45458 (OCI8: Numeric keys for associative arrays are not handled properly)
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -4,6 +4,7 @@ Bug #46994 (CLOB size does not update when using CLOB IN OUT param in stored pro
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #47189 (Multiple oci_fetch_all calls)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs: different error handling for this undefined behavior
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #47281 ($php_errormsg is limited in size of characters)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
// error3.phpt obsoletes this test for newer Oracle client versions

View file

@ -4,6 +4,7 @@ Bug #47281 ($php_errormsg is limited in size of characters)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => false, 'timesten' => true); // test runs on these DBs: shorter message length in TimesTen
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #51253 (oci_bind_array_by_name() array references)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -2,6 +2,10 @@
Bug #51291 (oci_error() doesn't report last error when called two times)
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -4,6 +4,7 @@ Bug #51291 (oci_error() doesn't report last error when called two times)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs: different error messages from TimesTen
require(__DIR__.'/skipif.inc');
?>

View file

@ -5,6 +5,7 @@ oci8
--SKIPIF--
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -9,6 +9,7 @@ mbstring
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #71448 (Binding reference overwritten on php7)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => true); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -2,6 +2,10 @@
Bug #71422 (Fix ORA-01438: value larger than specified precision allowed for this column)
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -4,6 +4,7 @@ Bug #71600 (oci_fetch_all result in segfault when select more than 8 columns)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => true); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ Bug #72524 (Binding null values triggers ORA-24816 error)
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => true); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -2,6 +2,10 @@
Bug #74625 (Integer overflow in oci_bind_array_by_name)
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
require(__DIR__.'/connect.inc');

View file

@ -5,6 +5,7 @@ oci8
--SKIPIF--
<?php
if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
if (strcasecmp($user, "system") && strcasecmp($user, "sys")) {

View file

@ -2,6 +2,10 @@
connect/close/connect
--EXTENSIONS--
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php

View file

@ -4,6 +4,7 @@ oci_new_collection()
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ oci_new_collection() + free()
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ oci_new_collection() + free()
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

View file

@ -4,6 +4,7 @@ collection methods
oci8
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(__DIR__.'/skipif.inc');
?>

Some files were not shown because too many files have changed in this diff Show more