From 9a5f10ab70fc5933eb8bb1404c1e4f6167bb9f31 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 25 Apr 2003 18:52:33 +0000 Subject: [PATCH] - Clarification of the return code git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@124638 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mcrypt/functions/mcrypt-generic-init.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/reference/mcrypt/functions/mcrypt-generic-init.xml b/reference/mcrypt/functions/mcrypt-generic-init.xml index 4530f3b994..15a8719f8f 100644 --- a/reference/mcrypt/functions/mcrypt-generic-init.xml +++ b/reference/mcrypt/functions/mcrypt-generic-init.xml @@ -1,5 +1,5 @@ - + @@ -24,7 +24,13 @@ and OFB modes. It needs to be random and unique (but not secret). The same IV must be used for encryption/decryption. If you do not want to use it you should set it to zeros, but this is not - recommended. The function returns a negative value on error. + recommended. + + + The function returns a negative value on error, -3 when the key length + was incorrect, -4 when there was a memory allocation problem and any + other return value is an unknown error. If an error occurs a warning will + be displayed accordingly. You need to call this function before every call to