Annotation of embedaddon/php/ext/oci8/tests/error1.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: oci_error() when oci_connect() fails
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: var_dump(oci_connect("some", "some", "some"));
! 9: var_dump(oci_error());
! 10:
! 11: echo "Done\n";
! 12:
! 13: ?>
! 14: --EXPECTF--
! 15: Warning: oci_connect(): ORA-12154: %s in %s on line %d
! 16: bool(false)
! 17: array(4) {
! 18: ["code"]=>
! 19: int(12154)
! 20: ["message"]=>
! 21: string(%d) "ORA-12154: %s"
! 22: ["offset"]=>
! 23: int(0)
! 24: ["sqltext"]=>
! 25: string(0) ""
! 26: }
! 27: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>