summaryrefslogtreecommitdiff
path: root/ext/standard/lcg.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/lcg.c')
-rw-r--r--ext/standard/lcg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/standard/lcg.c b/ext/standard/lcg.c
index af826c547b..f8b7e8d340 100644
--- a/ext/standard/lcg.c
+++ b/ext/standard/lcg.c
@@ -118,6 +118,9 @@ PHP_MINIT_FUNCTION(lcg) /* {{{ */
Returns a value from the combined linear congruential generator */
PHP_FUNCTION(lcg_value)
{
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
+ }
RETURN_DOUBLE(php_combined_lcg());
}
/* }}} */