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