Document the hex2bin odd length error.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324990 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nikita Popov 2012-04-09 21:51:56 +00:00
parent 3f318cd328
commit 644ee2d6ed

View file

@ -4,7 +4,7 @@
<refentry xml:id="function.hex2bin" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>hex2bin</refname>
<refpurpose>Convert hex to binary</refpurpose>
<refpurpose>Convert the hexadecimal representation of data to binary</refpurpose>
</refnamediv>
<refsect1 role="description">
@ -14,7 +14,7 @@
<methodparam><type>string</type><parameter>data</parameter></methodparam>
</methodsynopsis>
<para>
Converts the hex representation of data to binary
Converts the hex representation of data to binary.
</para>
</refsect1>
@ -35,7 +35,15 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns the binary representation of the given data.
Returns the binary representation of the given data &return.falseforfailure;.
</para>
</refsect1>
<refsect1 role="errors">
&reftitle.errors;
<para>
If the hexadecimal input string is of odd length an <constant>E_WARNING</constant>
level error is thrown.
</para>
</refsect1>