From: inem0o Date: Fri, 16 Aug 2019 10:02:03 +0000 (+0200) Subject: Add lcg arginfo stubs X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f795bdfd30673de29908103abb0439a4af36988e;p=php Add lcg arginfo stubs --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 002adfb4a4..3b2f579cf1 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 698cb983ed..9cd3cb5ad2 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 7f22005bd8..fdef11b68b 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)