diff options
Diffstat (limited to 'ext/gmp/gmp.c')
| -rw-r--r-- | ext/gmp/gmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c index 36c8260f5b..d38311a5be 100644 --- a/ext/gmp/gmp.c +++ b/ext/gmp/gmp.c @@ -1841,9 +1841,9 @@ ZEND_FUNCTION(gmp_random_bits) return; } - if (bits < 0) { + if (bits <= 0) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "The number of bits must be positive"); - RETURN_FALSE; + return; } INIT_GMP_RETVAL(gmpnum_result); |
