mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +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 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
|
||||||
|
Loading…
Reference in New Issue
Block a user