reference/oci8/functions/oci-password-change.xml
78be3d554eca2e35b0e7cdbfb3aaba62bacdc336
...
...
@@ -15,13 +15,13 @@
15
15
<methodparam><type>string</type><parameter>old_password</parameter></methodparam>
16
16
<methodparam><type>string</type><parameter>new_password</parameter></methodparam>
17
17
</methodsynopsis>
18
-
<methodsynopsis>
19
-
<type>resource</type><methodname>oci_password_change</methodname>
20
-
<methodparam><type>string</type><parameter>dbname</parameter></methodparam>
21
-
<methodparam><type>string</type><parameter>username</parameter></methodparam>
22
-
<methodparam><type>string</type><parameter>old_password</parameter></methodparam>
23
-
<methodparam><type>string</type><parameter>new_password</parameter></methodparam>
24
-
</methodsynopsis>
18
+
<methodsynopsis>
19
+
<type>resource</type><methodname>oci_password_change</methodname>
20
+
<methodparam><type>string</type><parameter>database_name</parameter></methodparam>
21
+
<methodparam><type>string</type><parameter>username</parameter></methodparam>
22
+
<methodparam><type>string</type><parameter>old_password</parameter></methodparam>
23
+
<methodparam><type>string</type><parameter>new_password</parameter></methodparam>
24
+
</methodsynopsis>
25
25
<para>
26
26
Changes password for user with <parameter>username</parameter>.
27
27
</para>
...
...
@@ -69,7 +69,7 @@
69
69
</listitem>
70
70
</varlistentry>
71
71
<varlistentry>
72
-
<term><parameter>dbname</parameter></term>
72
+
<term><parameter>database_name</parameter></term>
73
73
<listitem>
74
74
<para>
75
75
The database name.
...
...
@@ -83,7 +83,9 @@
83
83
<refsect1 role="returnvalues">
84
84
&reftitle.returnvalues;
85
85
<para>
86
-
&return.success;
86
+
When <parameter>database_name</parameter> is provided, <function>oci_password_change</function> returns &true; on success,
87
+
&return.falseforfailure;. When <parameter>connection</parameter> is provided, <function>oci_password_change</function> returns
88
+
the connection resource on success,&return.falseforfailure;.
87
89
</para>
88
90
</refsect1>
89
91

...
...
@@ -140,7 +142,7 @@ if (!$c) { // The original error wasn't 28001, or the password change failed
140
142
}
141
143

142
144
// Use the connection $c
143
-
...
145
+
// ...
144
146

145
147
?>
146
148
]]>
...
...
@@ -174,19 +176,9 @@ if (!$c) { // The original error wasn't 28001, or the password change failed
174
176
since OCI8 version 1.1.
175
177
</para>
176
178
</note>
177
-
<note>
178
-
<para>
179
-
In PHP versions before 5.0.0 you must use <function>ocipasswordchange</function> instead.
180
-
This name still can be used, it was left as alias of
181
-
<function>oci_password_change</function> for downwards compatability.
182
-
This, however, is deprecated and not recommended.
183
-
</para>
184
-
</note>
185
-

186
179
</refsect1>
187
180

188
181
</refentry>
189
-

190
182
<!-- Keep this comment at the end of the file
191
183
Local variables:
192
184
mode: sgml
193
185