mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
MFH: Change E_ERROR to E_WARNING when more_entropy flag is off on Cygwin.
This commit is contained in:
parent
5fd4035194
commit
5916b8dd04
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user