From 644ee2d6edcb5bf391004d8f34dd4e50efe976a2 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 9 Apr 2012 21:51:56 +0000 Subject: [PATCH] Document the hex2bin odd length error. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324990 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/hex2bin.xml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/reference/strings/functions/hex2bin.xml b/reference/strings/functions/hex2bin.xml index e80f0c7172..4d9285da67 100644 --- a/reference/strings/functions/hex2bin.xml +++ b/reference/strings/functions/hex2bin.xml @@ -4,7 +4,7 @@ hex2bin - Convert hex to binary + Convert the hexadecimal representation of data to binary @@ -14,7 +14,7 @@ stringdata - Converts the hex representation of data to binary + Converts the hex representation of data to binary. @@ -35,7 +35,15 @@ &reftitle.returnvalues; - Returns the binary representation of the given data. + Returns the binary representation of the given data &return.falseforfailure;. + + + + + &reftitle.errors; + + If the hexadecimal input string is of odd length an E_WARNING + level error is thrown.