diff options
Diffstat (limited to 'tests/old_oci_close1.phpt')
-rw-r--r-- | tests/old_oci_close1.phpt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/old_oci_close1.phpt b/tests/old_oci_close1.phpt new file mode 100644 index 0000000000..9af2eeb398 --- /dev/null +++ b/tests/old_oci_close1.phpt @@ -0,0 +1,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 |