summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-10-19 13:42:36 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-10-19 13:42:36 +0000
commit7d1ec21215694222da297fabae97624c901d995d (patch)
tree3a7dbcf8bc92d658e15c9c46d3c1a7fe7641d65a
parent1ef17aeff30345cae2a76e973e512bff8f5ae770 (diff)
downloadphp-git-7d1ec21215694222da297fabae97624c901d995d.tar.gz
MFH: Change E_ERROR to E_WARNING when more_entropy flag is off on Cygwin.
-rw-r--r--ext/standard/uniqid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/uniqid.c b/ext/standard/uniqid.c
index a5b3fb7bbd..3bf4890e96 100644
--- a/ext/standard/uniqid.c
+++ b/ext/standard/uniqid.c
@@ -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