mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
31c35e5cad
remove ENV tag from the old ones
31 lines
639 B
PHP
31 lines
639 B
PHP
--TEST--
|
|
oci_password_change()
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
require dirname(__FILE__)."/connect.inc";
|
|
|
|
$new_password = "test";
|
|
var_dump(oci_password_change($dbase, $user, $password, $new_password));
|
|
|
|
if (!empty($dbase)) {
|
|
var_dump($new_c = ocilogon($user,$new_password,$dbase));
|
|
}
|
|
else {
|
|
var_dump($new_c = ocilogon($user,$new_password));
|
|
}
|
|
|
|
var_dump(oci_password_change($dbase, $user, $new_password, $password));
|
|
|
|
|
|
echo "Done\n";
|
|
|
|
?>
|
|
--EXPECTF--
|
|
resource(%d) of type (oci8 connection)
|
|
resource(%d) of type (oci8 connection)
|
|
resource(%d) of type (oci8 connection)
|
|
Done
|