MFH: 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:44 +00:00
parent 5fd4035194
commit 5916b8dd04

View File

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