com php-src: Add pageinfo arginfo stubs: ext/standard/basic_f unctions.c ext/standard/basic_functions.stub.php ex t/standard/basic_functions_arginfo.h

From: Date: Mon, 19 Aug 2019 09:29:22 +0000
Subject: com php-src: Add pageinfo arginfo stubs: ext/standard/basic_f unctions.c ext/standard/basic_functions.stub.php ex t/standard/basic_functions_arginfo.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-107959@lists.php.net to get a copy of this message
Commit: 8150c65ae4f72545eac40d0374e1d34f215f27bc Author: inem0o <cuneaz.leo@gmail.com> Mon, 19 Aug 2019 10:18:06 +0200 Committer: Christoph M. Becker <cmbecker69@gmx.de> Mon, 19 Aug 2019 11:29:22 +0200 Parents: b7c4d8e8467cdd75f0910618e3cdfcff08ab2a04 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8150c65ae4f72545eac40d0374e1d34f215f27bc Log: Add pageinfo 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 678a0c5..e9749b5 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1615,22 +1615,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_unpack, 0, 0, 2) ZEND_ARG_INFO(0, offset) ZEND_END_ARG_INFO() /* }}} */ -/* {{{ pageinfo.c */ -ZEND_BEGIN_ARG_INFO(arginfo_getmyuid, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO(arginfo_getmygid, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO(arginfo_getmypid, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO(arginfo_getmyinode, 0) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO(arginfo_getlastmod, 0) -ZEND_END_ARG_INFO() -/* }}} */ /* {{{ password.c */ ZEND_BEGIN_ARG_INFO_EX(arginfo_password_hash, 0, 0, 2) ZEND_ARG_INFO(0, password) diff --git a/ext/standard/basic_functions.stub..php b/ext/standard/basic_functions.stub.php index 8fae8d2..e6187a1 100644 --- a/ext/standard/basic_functions.stub.php +++ b/ext/standard/basic_functions.stub.php @@ -116,6 +116,22 @@ function md5(string $str, bool $raw_output = false): string {} /** @return string|false */ function md5_file(string $filename, bool $raw_output = false) {} +/* pageinfo.c */ + +/** @return int|false */ +function getmyuid() {} + +/** @return int|false */ +function getmygid() {} + +/** @return int|false */ +function getmypid() {} + +/** @return int|false */ +function getmyinode() {} + +function getlastmod(): int {} + /* syslog.c */ #ifdef HAVE_SYSLOG_H diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h index 1974f19..587b7c3 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() + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_md5, 0, 1, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, raw_output, _IS_BOOL, 0) @@ -135,8 +138,15 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_md5_file, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, raw_output, _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() +#define arginfo_getmyuid arginfo_ob_get_flush + +#define arginfo_getmygid arginfo_ob_get_flush + +#define arginfo_getmypid arginfo_ob_get_flush + +#define arginfo_getmyinode arginfo_ob_get_flush + +#define arginfo_getlastmod arginfo_ob_get_level #if defined(HAVE_SYSLOG_H) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openlog, 0, 3, _IS_BOOL, 0)

« previous php.cvs (#107959) next »