svn: /phpdoc/en/trunk/reference/crack/functions/ crack-check.xml
| From: | Christoph Michael Becker | Date: | Sun, 14 Jun 2015 14:35:52 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/crack/functions/ crack-check.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13395@lists.php.net to get a copy of this message | ||
cmb Sun, 14 Jun 2015 14:35:52 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=336946
Log:
documented alternative signature (fixes #69562)
Bug: https://bugs.php.net/69562 (Verified) Undocumented
features in crack PECL
Changed paths:
U phpdoc/en/trunk/reference/crack/functions/crack-check.xml
Modified: phpdoc/en/trunk/reference/crack/functions/crack-check.xml
===================================================================
--- phpdoc/en/trunk/reference/crack/functions/crack-check.xml 2015-06-14 14:29:20 UTC (rev 336945)
+++ phpdoc/en/trunk/reference/crack/functions/crack-check.xml 2015-06-14 14:35:52 UTC (rev 336946)
@@ -16,10 +16,14 @@
<methodsynopsis>
<type>bool</type><methodname>crack_check</methodname>
<methodparam><type>string</type><parameter>password</parameter></methodparam>
+
<methodparam><type>string</type><parameter>username</parameter><initializer>""</initializer></methodparam>
+
<methodparam><type>string</type><parameter>gecos</parameter><initializer>""</initializer></methodparam>
+
<methodparam><type>resource</type><parameter>dictionary</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
<para>
Performs an obscure check with the given password on the specified
- dictionary.
+ dictionary. The alternative signature also takes into account the username
+ and the GECOS information.
</para>
&warn.experimental.func;
</refsect1>
@@ -40,10 +44,26 @@
<term><parameter>password</parameter></term>
<listitem>
<para>
- The tested password.
+ The password to be checked.
</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><parameter>username</parameter></term>
+ <listitem>
+ <para>
+ The username of the account with the password.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>gecos</parameter></term>
+ <listitem>
+ <para>
+ The GECOS information associated with the user account.
+ </para>
+ </listitem>
+ </varlistentry>
</variablelist>
</para>
</refsect1>
@@ -53,6 +73,33 @@
Returns &true; if <parameter>password</parameter> is strong, or &false;
otherwise.
</para>
</refsect1>
+
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>0.3</entry>
+ <entry>
+ The <parameter>username</parameter>, <parameter>gecos</parameter>
and
+ <parameter>dictionary</parameter> parameters were added to the
+ alternative signature.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1>
+
</refentry>
<!-- Keep this comment at the end of the file