Annotation of embedaddon/php/ext/oci8/tests/pecl_bug6109.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: PECL Bug #6109 (Error messages not kept)
        !             3: --SKIPIF--
        !             4: <?php if (!extension_loaded('oci8')) die ("skip no oci8 extension"); ?>
        !             5: --FILE--
        !             6: <?php
        !             7: 
        !             8: require(dirname(__FILE__).'/connect.inc');
        !             9: 
        !            10: // Run Test
        !            11: 
        !            12: echo "Test 1\n";
        !            13: 
        !            14: $s = oci_parse($c, 'delete from table_does_not_exist');
        !            15: $r = @oci_execute($s);
        !            16: 
        !            17: if ($r) {
        !            18:        echo "whoops - table does exist\n";
        !            19: } else {
        !            20:        for ($i = 0; $i < 5; $i++) {
        !            21:                $err = oci_error($s);
        !            22:                echo ($i) .' -> '.$err['message'] ."\n";
        !            23:        }
        !            24: }
        !            25: 
        !            26: // Cleanup
        !            27: 
        !            28: oci_close($c);
        !            29: 
        !            30: echo "Done\n";
        !            31: 
        !            32: ?>
        !            33: --EXPECTF--
        !            34: Test 1
        !            35: 0 -> ORA-00942: %s
        !            36: 1 -> ORA-00942: %s
        !            37: 2 -> ORA-00942: %s
        !            38: 3 -> ORA-00942: %s
        !            39: 4 -> ORA-00942: %s
        !            40: Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>