From f795bdfd30673de29908103abb0439a4af36988e Mon Sep 17 00:00:00 2001 From: inem0o Date: Fri, 16 Aug 2019 12:02:03 +0200 Subject: [PATCH] Add lcg arginfo stubs --- ext/standard/basic_functions.c | 6 ------ ext/standard/basic_functions.stub.php | 4 ++++ ext/standard/basic_functions_arginfo.h | 3 +++ 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 002adfb4a41..3b2f579cf11 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1365,12 +1365,6 @@ ZEND_BEGIN_ARG_INFO(arginfo_iptcparse, 0) ZEND_ARG_INFO(0, iptcdata) ZEND_END_ARG_INFO() /* }}} */ - -/* {{{ lcg.c */ -ZEND_BEGIN_ARG_INFO(arginfo_lcg_value, 0) -ZEND_END_ARG_INFO() -/* }}} */ - /* {{{ levenshtein.c */ ZEND_BEGIN_ARG_INFO_EX(arginfo_levenshtein, 0, 0, 2) ZEND_ARG_INFO(0, str1) diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php index 698cb983ed5..9cd3cb5ad24 100644 --- a/ext/standard/basic_functions.stub.php +++ b/ext/standard/basic_functions.stub.php @@ -105,6 +105,10 @@ function ftok(string $pathname, string $proj): int {} /** @return array|int|float|false */ function hrtime(bool $get_as_number = false) {} +/* lcg.c */ + +function lcg_value(): float {} + /* syslog.c */ #ifdef HAVE_SYSLOG_H diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h index 7f22005bd8d..fdef11b68bc 100644 --- a/ext/standard/basic_functions_arginfo.h +++ b/ext/standard/basic_functions_arginfo.h @@ -125,6 +125,9 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_hrtime, 0, 0, 0) ZEND_ARG_TYPE_INFO(0, get_as_number, _IS_BOOL, 0) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_lcg_value, 0, 0, IS_DOUBLE, 0) +ZEND_END_ARG_INFO() + #if defined(HAVE_SYSLOG_H) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openlog, 0, 3, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, ident, IS_STRING, 0)