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