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

1.1     ! misho       1: --TEST--
        !             2: privileged connect tests
        !             3: --SKIPIF--
        !             4: <?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
        !             5: --INI--
        !             6: oci8.privileged_connect=1
        !             7: --FILE--
        !             8: <?php
        !             9:                
        !            10: require dirname(__FILE__)."/connect.inc";
        !            11: 
        !            12: oci_connect("", "", "", false, OCI_SYSOPER);
        !            13: oci_connect("", "", "", false, OCI_SYSDBA);
        !            14: oci_connect("", "", "", false, -1);
        !            15: oci_connect("", "", "", false, "qwe");
        !            16: 
        !            17: echo "Done\n";
        !            18: ?>
        !            19: --EXPECTF--    
        !            20: Warning: oci_connect(): ORA-%d: %s in %s on line %d
        !            21: 
        !            22: Warning: oci_connect(): ORA-%d: %s in %s on line %d
        !            23: 
        !            24: Warning: oci_connect(): Invalid session mode specified (-1) in %s on line %d
        !            25: 
        !            26: Warning: oci_connect() expects parameter 5 to be long, string given in %s on line %d
        !            27: Done

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