diff options
Diffstat (limited to 'ext/standard/lcg.c')
| -rw-r--r-- | ext/standard/lcg.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/standard/lcg.c b/ext/standard/lcg.c index 992c3691ce..fc81bde4cc 100644 --- a/ext/standard/lcg.c +++ b/ext/standard/lcg.c @@ -114,9 +114,8 @@ PHP_MINIT_FUNCTION(lcg) /* {{{ */ Returns a value from the combined linear congruential generator */ PHP_FUNCTION(lcg_value) { - if (zend_parse_parameters_none() == FAILURE) { - return; - } + ZEND_PARSE_PARAMETERS_NONE(); + RETURN_DOUBLE(php_combined_lcg()); } /* }}} */ |
