xref: /PHP-7.4/ext/oci8/tests/old_oci_close1.phpt (revision 26dfce7f)
1--TEST--
2oci8.old_oci_close_semantics Off
3--SKIPIF--
4<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
5--INI--
6oci8.old_oci_close_semantics=0
7--FILE--
8<?php
9
10require __DIR__."/connect.inc";
11
12var_dump($c);
13var_dump(oci_close($c));
14var_dump(oci_parse($c, "select 1 from dual"));
15
16echo "Done\n";
17
18?>
19--EXPECTF--
20resource(%d) of type (oci8 connection)
21bool(true)
22
23Warning: oci_parse(): supplied resource is not a valid oci8 connection resource in %sold_oci_close1.php on line %d
24bool(false)
25Done
26