summaryrefslogtreecommitdiff
path: root/ext/standard/lcg.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2017-09-12 11:25:21 +0800
committerXinchen Hui <laruence@gmail.com>2017-09-12 11:25:21 +0800
commitff6f41c94e38cb418a4466a236b0afabe222552f (patch)
treef03703f25f4d4dd6f042dd8a06ef018005f7d5fc /ext/standard/lcg.c
parent0d890025ec338b767afd8433d3d852d7a4bba1d8 (diff)
downloadphp-git-ff6f41c94e38cb418a4466a236b0afabe222552f.tar.gz
Narrow typeinfos down for zend_parse_paramenters_none
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());
}
/* }}} */