summaryrefslogtreecommitdiff
path: root/ext/mcrypt/mcrypt.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-07-10 14:19:51 +0000
committerPierre Joye <pajoye@php.net>2011-07-10 14:19:51 +0000
commitb8dd53b713a6528259e9936000639838611a60b5 (patch)
treeefee5084e7f58f0a05529630b99f5d40c7dd5f1a /ext/mcrypt/mcrypt.c
parent31a69cd480377567c976277a39a516ba0e24b057 (diff)
downloadphp-git-b8dd53b713a6528259e9936000639838611a60b5.tar.gz
- use warning here to match unix behavior
Diffstat (limited to 'ext/mcrypt/mcrypt.c')
-rw-r--r--ext/mcrypt/mcrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c
index 0d1ad3b850..609dac1d5f 100644
--- a/ext/mcrypt/mcrypt.c
+++ b/ext/mcrypt/mcrypt.c
@@ -1394,7 +1394,7 @@ PHP_FUNCTION(mcrypt_create_iv)
BYTE *iv_b = (BYTE *) iv;
if (php_win32_get_random_bytes(iv_b, (size_t) size) == FAILURE){
efree(iv);
- php_error_docref(NULL TSRMLS_CC, E_ERROR, "Could not gather sufficient random data");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not gather sufficient random data");
RETURN_FALSE;
}
n = size;