xref: /PHP-5.3/ext/oci8/tests/old_oci_close1.phpt (revision 31c35e5c)
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 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)
21bool(true)
22
23Warning: oci_parse() expects parameter 1 to be resource, null given in %s on line %d
24NULL
25Done
26