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

1.1     ! misho       1: --TEST--
        !             2: oci_password_change()
        !             3: --SKIPIF--
        !             4: <?php
        !             5: $target_dbs = array('oracledb' => true, 'timesten' => false);  // test runs on thes
        !             6: require(dirname(__FILE__).'/skipif.inc');
        !             7: if (empty($dbase)) die ("skip requires database connection string be set");
        !             8: if ($test_drcp) die("skip password change not supported in DRCP Mode");
        !             9: 
        !            10: // This test is known to fail with Oracle 10.2.0.4 client libraries
        !            11: // connecting to Oracle Database 11 (Oracle bug 6277160, fixed 10.2.0.5)
        !            12: if (preg_match('/Release (11|12)\./', oci_server_version($c), $matches) === 1 &&
        !            13:     preg_match('/^10\.2\.0\.[1234]/', oci_client_version()) === 1) {
        !            14:     die ("skip test known to fail using Oracle 10.2.0.4 client libs connecting to Oracle 11 (6277160)");
        !            15: }
        !            16: ?>
        !            17: --FILE--
        !            18: <?php
        !            19: 
        !            20: // This test will diff if either the client or the server is 11.2.0.3
        !            21: // (or greater) and the other is 11.2.0.2 (or earlier).  Both client
        !            22: // and server must be upgraded at the same time.
        !            23: 
        !            24: require dirname(__FILE__)."/connect.inc";
        !            25: 
        !            26: $new_password = "test";
        !            27: var_dump(oci_password_change($dbase, $user, $password, $new_password));
        !            28: 
        !            29: if (!empty($dbase)) {
        !            30:        var_dump($new_c = ocilogon($user,$new_password,$dbase));
        !            31: }
        !            32: else {
        !            33:        var_dump($new_c = ocilogon($user,$new_password));
        !            34: }
        !            35: 
        !            36: var_dump(oci_password_change($dbase, $user, $new_password, $password));
        !            37: 
        !            38: 
        !            39: echo "Done\n";
        !            40: 
        !            41: ?>
        !            42: --EXPECTF--
        !            43: resource(%d) of type (oci8 connection)
        !            44: resource(%d) of type (oci8 connection)
        !            45: resource(%d) of type (oci8 connection)
        !            46: Done

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