xref: /PHP-8.1/ext/oci8/tests/old_oci_close.phpt (revision 328a07da)
1--TEST--
2oci8.old_oci_close_semantics On
3--EXTENSIONS--
4oci8
5--INI--
6oci8.old_oci_close_semantics=1
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--
20Deprecated: Directive oci8.old_oci_close_semantics is deprecated%s
21resource(%d) of type (oci8 connection)
22NULL
23resource(%d) of type (oci8 statement)
24Done
25