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

index a5b3fb7bbda1a619dd5ed5ab71ed0472f1a85803..3bf4890e96fae72e2562fdfd7bdc7ac77ba9d499 100644 (file)
@@ -67,8 +67,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