mirror of
https://github.com/php/php-src.git
synced 2024-11-30 21:35:36 +08:00
31c35e5cad
remove ENV tag from the old ones
31 lines
573 B
PHP
31 lines
573 B
PHP
--TEST--
|
|
ocipasswordchange()
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
require dirname(__FILE__)."/connect.inc";
|
|
|
|
$new_password = "test";
|
|
var_dump(ocipasswordchange($c, $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(ocipasswordchange($new_c, $user, $new_password, $password));
|
|
|
|
|
|
echo "Done\n";
|
|
|
|
?>
|
|
--EXPECTF--
|
|
bool(true)
|
|
resource(%d) of type (oci8 connection)
|
|
bool(true)
|
|
Done
|