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