From: Pierre Joye Date: Sun, 10 Jul 2011 14:19:51 +0000 (+0000) Subject: - use warning here to match unix behavior X-Git-Tag: php-5.4.0alpha2~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a18b29d235742865ea7b358cfa6b2d833a33cfc;p=php - use warning here to match unix behavior --- 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;