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