xref: /PHP-7.4/ext/oci8/tests/testping.phpt (revision 26dfce7f)
1--TEST--
2Exercise OCIPing functionality on reconnect (code coverage test)
3--SKIPIF--
4<?php if (!extension_loaded('oci8')) die ("skip no oci8 extension"); ?>
5--INI--
6oci8.ping_interval=0
7--FILE--
8<?php
9
10require(__DIR__.'/details.inc');
11
12for ($i = 0; $i < 2; $i++) {
13	if (!empty($dbase)) {
14		$c = oci_pconnect($user,$password,$dbase);
15	}
16	else {
17		$c = oci_pconnect($user,$password);
18	}
19}
20
21echo "Done\n";
22
23?>
24--EXPECT--
25Done
26