mirror of
https://github.com/php/php-src.git
synced 2026-04-25 08:58:28 +02:00
More test portability fixes mostly for gcov.php.net
This commit is contained in:
@@ -10,6 +10,8 @@ if (preg_match('/Release 1[01]\.2\./', oci_server_version($c), $matches) !== 1)
|
||||
die("skip test expected to work only with Oracle 11g or greater version of client");
|
||||
}
|
||||
?>
|
||||
--ENV--
|
||||
NLS_LANG=
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@ if (preg_match('/Release 1[01]\.2\./', oci_server_version($c), $matches) !== 1)
|
||||
die("skip test expected to work only with Oracle 11g or greater version of client");
|
||||
}
|
||||
?>
|
||||
--ENV--
|
||||
NLS_LANG=
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@ if (preg_match('/Release 1[01]\.2\./', oci_server_version($c), $matches) !== 1)
|
||||
die("skip test expected to work only with Oracle 11g or greater version of client");
|
||||
}
|
||||
?>
|
||||
--ENV--
|
||||
NLS_LANG=
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@ if (preg_match('/Release 1[01]\.2\./', oci_server_version($c), $matches) !== 1)
|
||||
die("skip test expected to work only with Oracle 11g or greater version of client");
|
||||
}
|
||||
?>
|
||||
--ENV--
|
||||
NLS_LANG=
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@ if (preg_match('/Release 1[01]\.2\./', oci_server_version($c), $matches) !== 1)
|
||||
die("skip test expected to work only with Oracle 11g or greater version of client");
|
||||
}
|
||||
?>
|
||||
--ENV--
|
||||
NLS_LANG=
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
@@ -251,4 +253,4 @@ string(3) "196"
|
||||
string(3) "197"
|
||||
string(3) "198"
|
||||
string(3) "199"
|
||||
Done
|
||||
Done
|
||||
|
||||
@@ -10,6 +10,8 @@ if (preg_match('/Release 1[01]\.2\./', oci_server_version($c), $matches) !== 1)
|
||||
die("skip test expected to work only with Oracle 11g or greater version of client");
|
||||
}
|
||||
?>
|
||||
--ENV--
|
||||
NLS_LANG=
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
@@ -253,4 +255,4 @@ string(3) "196"
|
||||
string(3) "197"
|
||||
string(3) "198"
|
||||
string(3) "199"
|
||||
Done
|
||||
Done
|
||||
|
||||
@@ -10,6 +10,8 @@ if (preg_match('/Release 1[01]\.2\./', oci_server_version($c), $matches) !== 1)
|
||||
die("skip test expected to work only with Oracle 11g or greater version of client");
|
||||
}
|
||||
?>
|
||||
--ENV--
|
||||
NLS_LANG=
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -11,13 +11,14 @@ if (preg_match('/Compile-time ORACLE_HOME/', $phpinfo) !== 1) {
|
||||
// Assume building PHP with an ORACLE_HOME means the tested DB is on the same machine as PHP
|
||||
die("skip this test won't work with remote Oracle");
|
||||
}
|
||||
if (substr(PHP_OS, 0, 3) == 'WIN') die("skip Test script not ported to Windows");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
require(dirname(__FILE__).'/connect.inc');
|
||||
|
||||
$realdirname = dirname(__FILE__);
|
||||
$realdirname = "/tmp"; // Use /tmp because a local dir can give ORA-22288 depending on perms
|
||||
$realfilename1 = "oci8bfiletest1.txt";
|
||||
$fullname1 = $realdirname."/".$realfilename1;
|
||||
$realfilename2 = "oci8bfiletest2.txt";
|
||||
|
||||
@@ -4,6 +4,7 @@ PECL Bug #10194 (segfault in Instant Client when memory_limit is reached inside
|
||||
<?php
|
||||
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
|
||||
require(dirname(__FILE__).'/skipif.inc');
|
||||
if ($stress_test !== true) die ('skip Test not run when $stress_test is FALSE');
|
||||
?>
|
||||
--INI--
|
||||
memory_limit=10M
|
||||
|
||||
@@ -5,6 +5,7 @@ PECL Bug #10194 (segfault in Instant Client when memory_limit is reached inside
|
||||
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
|
||||
require(dirname(__FILE__).'/skipif.inc');
|
||||
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platforms only");
|
||||
if ($stress_test !== true) die ('skip Test not run when $stress_test is FALSE');
|
||||
?>
|
||||
--INI--
|
||||
memory_limit=3M
|
||||
|
||||
@@ -5,6 +5,7 @@ PECL Bug #10194 (segfault in Instant Client when memory_limit is reached inside
|
||||
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on thes
|
||||
require(dirname(__FILE__).'/skipif.inc');
|
||||
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
|
||||
if ($stress_test !== true) die ('skip Test not run when $stress_test is FALSE');
|
||||
?>
|
||||
--INI--
|
||||
memory_limit=6M
|
||||
|
||||
Reference in New Issue
Block a user