]> granicus.if.org Git - php/commitdiff
Change E_ERROR to E_WARNING when more_entropy flag is off on Cygwin.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 19 Oct 2005 13:41:36 +0000 (13:41 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 19 Oct 2005 13:41:36 +0000 (13:41 +0000)
ext/standard/uniqid.c

index 9d692387032ececea739a8c652465c910a366168..304e14250238c095fdca7f24d7eb5ebdb92353e2 100644 (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