1--TEST-- 2oci8.old_oci_close_semantics Off 3--EXTENSIONS-- 4oci8 5--INI-- 6oci8.old_oci_close_semantics=0 7--FILE-- 8<?php 9 10require __DIR__."/connect.inc"; 11 12var_dump($c); 13var_dump(oci_close($c)); 14 15try { 16 var_dump(oci_parse($c, "select 1 from dual")); 17} catch(\TypeError $exception) { 18 var_dump($exception->getMessage()); 19} 20 21echo "Done\n"; 22 23?> 24--EXPECTF-- 25resource(%d) of type (oci8 connection) 26bool(true) 27string(%d) "oci_parse(): supplied resource is not a valid oci8 connection resource" 28Done 29