xref: /PHP-8.1/ext/oci8/tests/persistent.phpt (revision 74859783)
1--TEST--
2reusing persistent connections
3--EXTENSIONS--
4oci8
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