com php-src: Add ftok arginfo stubs: ext/standard/basic_funct ions.c ext/standard/basic_functions.stub.php ext/st andard/basic_functions_arginfo.h

From: Date: Fri, 16 Aug 2019 10:53:11 +0000
Subject: com php-src: Add ftok arginfo stubs: ext/standard/basic_funct ions.c ext/standard/basic_functions.stub.php ext/st andard/basic_functions_arginfo.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-107941@lists.php.net to get a copy of this message
Commit: f1eca42825eca314f8d3f6991d7cb3f3b634d4a8 Author: inem0o <cuneaz.leo@gmail.com> Fri, 16 Aug 2019 11:47:52 +0200 Committer: Christoph M. Becker <cmbecker69@gmx.de> Fri, 16 Aug 2019 12:53:11 +0200 Parents: 37a8408e83057c13cc14b29018f698f4244d151e Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f1eca42825eca314f8d3f6991d7cb3f3b634d4a8 Log: Add ftok arginfo stubs Changed paths: M ext/standard/basic_functions.c M ext/standard/basic_functions.stub.php M ext/standard/basic_functions_arginfo.h Diff: diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 7935657..002adfb 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 51095d7..698cb98 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 b9ce39a..7f22005 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()

« previous php.cvs (#107941) next »