xref: /PHP-8.0/ext/oci8/tests/persistent.phpt (revision 26dfce7f)
1--TEST--
2reusing persistent connections
3--SKIPIF--
4<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
5--FILE--
6<?php
7
8require __DIR__."/connect.inc";
9
10var_dump(oci_pconnect($user, $password, $dbase));
11var_dump(oci_pconnect($user, $password, $dbase));
12var_dump(oci_pconnect($user, $password, $dbase));
13var_dump(oci_connect($user, $password, $dbase));
14var_dump(oci_connect($user, $password, $dbase));
15var_dump(oci_connect($user, $password, $dbase));
16
17echo "Done\n";
18?>
19--EXPECTF--
20resource(%d) of type (oci8 persistent connection)
21resource(%d) of type (oci8 persistent connection)
22resource(%d) of type (oci8 persistent connection)
23resource(%d) of type (oci8 connection)
24resource(%d) of type (oci8 connection)
25resource(%d) of type (oci8 connection)
26Done
27