diff options
| author | Xinchen Hui <laruence@gmail.com> | 2017-09-12 11:25:21 +0800 |
|---|---|---|
| committer | Xinchen Hui <laruence@gmail.com> | 2017-09-12 11:25:21 +0800 |
| commit | ff6f41c94e38cb418a4466a236b0afabe222552f (patch) | |
| tree | f03703f25f4d4dd6f042dd8a06ef018005f7d5fc /ext/standard/lcg.c | |
| parent | 0d890025ec338b767afd8433d3d852d7a4bba1d8 (diff) | |
| download | php-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.c | 3 |
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()); } /* }}} */ |
