diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 7935657bf8d..002adfb4a41 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1229,14 +1229,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_pfsockopen, 0, 0, 1) ZEND_ARG_INFO(0, timeout) ZEND_END_ARG_INFO() /* }}} */ -/* {{{ ftok.c */ -#if HAVE_FTOK -ZEND_BEGIN_ARG_INFO(arginfo_ftok, 0) - ZEND_ARG_INFO(0, pathname) - ZEND_ARG_INFO(0, proj) -ZEND_END_ARG_INFO() -#endif -/* }}} */ /* {{{ head.c */ ZEND_BEGIN_ARG_INFO_EX(arginfo_header, 0, 0, 1) ZEND_ARG_INFO(0, header) diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php index 51095d7457c..698cb983ed5 100644 --- a/ext/standard/basic_functions.stub.php +++ b/ext/standard/basic_functions.stub.php @@ -94,6 +94,12 @@ function crc32(string $str): int {} function crypt(string $str, string $salt = UNKNOWN): string {} +/* ftok.c */ + +#if HAVE_FTOK +function ftok(string $pathname, string $proj): int {} +#endif + /* hrtime.c */ /** @return array|int|float|false */ diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h index b9ce39ad1c8..7f22005bd8d 100644 --- a/ext/standard/basic_functions_arginfo.h +++ b/ext/standard/basic_functions_arginfo.h @@ -114,6 +114,13 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_crypt, 0, 1, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, salt, IS_STRING, 0) ZEND_END_ARG_INFO() +#if HAVE_FTOK +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ftok, 0, 2, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, proj, IS_STRING, 0) +ZEND_END_ARG_INFO() +#endif + 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()