com php-src: Add hrtime arginfo stubs: ext/standard/basic_fun ctions.c ext/standard/basic_functions.stub.php ext/ standard/basic_functions_arginfo.h
| From: | Christoph Michael Becker | Date: | Wed, 14 Aug 2019 14:46:10 +0000 |
| Subject: | com php-src: Add hrtime arginfo stubs: ext/standard/basic_fun ctions.c ext/standard/basic_functions.stub.php ext/ standard/basic_functions_arginfo.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-107921@lists.php.net to get a copy of this message | ||
Commit: e2b0fb946baf065cb9d920ce49996890b05b5b5f
Author: Theodore Brown <theodorejb@outlook.com> Wed, 14 Aug 2019 08:32:51 -0500
Committer: Christoph M. Becker <cmbecker69@gmx.de> Wed, 14 Aug 2019 16:46:10 +0200
Parents: 262227fc9e6829ab9651a0b547e038b3a9a1e967
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e2b0fb946baf065cb9d920ce49996890b05b5b5f
Log:
Add hrtime 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 3a17613..7935657 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -1280,11 +1280,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_http_response_code, 0, 0, 0)
ZEND_ARG_INFO(0, response_code)
ZEND_END_ARG_INFO()
/* }}} */
-/* {{{ hrtime.c */
-ZEND_BEGIN_ARG_INFO(arginfo_hrtime, 0)
- ZEND_ARG_INFO(0, get_as_number)
-ZEND_END_ARG_INFO()
-/* }}} */
/* {{{ html.c */
ZEND_BEGIN_ARG_INFO_EX(arginfo_htmlspecialchars, 0, 0, 1)
ZEND_ARG_INFO(0, string)
diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php
index 4181709..51095d7 100644
--- a/ext/standard/basic_functions.stub.php
+++ b/ext/standard/basic_functions.stub.php
@@ -94,6 +94,11 @@ function crc32(string $str): int {}
function crypt(string $str, string $salt = UNKNOWN): string {}
+/* hrtime.c */
+
+/** @return array|int|float|false */
+function hrtime(bool $get_as_number = false) {}
+
/* syslog.c */
#ifdef HAVE_SYSLOG_H
diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h
index 54fcce7..b9ce39a 100644
--- a/ext/standard/basic_functions_arginfo.h
+++ b/ext/standard/basic_functions_arginfo.h
@@ -114,6 +114,10 @@ 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()
+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()
+
#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)
@@ -135,13 +139,13 @@ ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_INET_NTOP)
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_inet_ntop, 0, 1, 0, 0)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_inet_ntop, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, in_addr, IS_STRING, 0)
ZEND_END_ARG_INFO()
#endif
#if defined(HAVE_INET_PTON)
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_inet_pton, 0, 1, 0, 0)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_inet_pton, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, ip_address, IS_STRING, 0)
ZEND_END_ARG_INFO()
-#endif
\ No newline at end of file
+#endif