summaryrefslogtreecommitdiff
path: root/ext/oci8/tests/old_oci_close1.phpt
blob: 9af2eeb398556ff9823a370811c5e0cd518d9608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
oci8.old_oci_close_semantics Off
--SKIPIF--
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
--INI--
oci8.old_oci_close_semantics=0
--FILE--
<?php

require dirname(__FILE__)."/connect.inc";

var_dump($c);
var_dump(oci_close($c));
var_dump(oci_parse($c, "select 1 from dual"));

echo "Done\n";

?>
--EXPECTF--
resource(%d) of type (oci8 connection)
bool(true)

Warning: oci_parse() expects parameter 1 to be resource, null given in %s on line %d
NULL
Done