xref: /PHP-7.2/ext/oci8/tests/old_oci_close.phpt (revision 31c35e5c)
1--TEST--
2oci8.old_oci_close_semantics On
3--SKIPIF--
4<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
5--INI--
6oci8.old_oci_close_semantics=1
7--FILE--
8<?php
9
10require dirname(__FILE__)."/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)
21NULL
22resource(%d) of type (oci8 statement)
23Done
24