1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 18:22:42 +01:00

Change E_ERROR to E_WARNING when more_entropy flag is off on Cygwin.

This commit is contained in:
Ilia Alshanetsky
2005-10-19 13:41:36 +00:00
parent 9e9cee5c9d
commit 087145d953

View File

@@ -61,8 +61,8 @@ PHP_FUNCTION(uniqid)
#if HAVE_USLEEP && !defined(PHP_WIN32)
if (!more_entropy) {
#if defined(__CYGWIN__)
php_error_docref(NULL TSRMLS_CC, E_ERROR, "You must use 'more entropy' under CYGWIN.");
return;
php_error_docref(NULL TSRMLS_CC, E_WARNING, "You must use 'more entropy' under CYGWIN.");
RETURN_FALSE;
#else
usleep(1);
#endif