1--TEST-- 2oci_connect() with invalid character set 3--SKIPIF-- 4<?php if (!extension_loaded("oci8")) print "skip"; ?> 5--FILE-- 6<?php 7 8require __DIR__."/connect.inc"; 9 10var_dump($c1 = oci_connect($user, $password, $dbase)); 11var_dump($c2 = oci_connect($user, $password, $dbase, "")); 12var_dump($c3 = oci_connect($user, $password, $dbase, "blah")); 13var_dump($c4 = oci_connect($user, $password, $dbase, "obviously wrong")); 14 15var_dump($c3 == $c4); 16 17var_dump($c5 = oci_connect($user, $password, $dbase, "US7ASCII")); 18var_dump($c6 = oci_connect($user, $password, $dbase, "UTF8")); 19 20var_dump($c5 == $c6); 21 22echo "Done\n"; 23?> 24--EXPECTF-- 25resource(%d) of type (oci8 connection) 26resource(%d) of type (oci8 connection) 27 28Warning: oci_connect(): Invalid character set name: blah in %s on line %d 29resource(%d) of type (oci8 connection) 30 31Warning: oci_connect(): Invalid character set name: obviously wrong in %s on line %d 32resource(%d) of type (oci8 connection) 33bool(true) 34resource(%d) of type (oci8 connection) 35resource(%d) of type (oci8 connection) 36bool(false) 37Done 38