mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Add assert arginfo stubs
Closes GH-4619.
This commit is contained in:
parent
a98307df87
commit
d2210dc2ea
11
ext/standard/basic_functions.c
Normal file → Executable file
11
ext/standard/basic_functions.c
Normal file → Executable file
@ -348,17 +348,6 @@ ZEND_BEGIN_ARG_INFO(arginfo_sys_getloadavg, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
#endif
|
||||
/* }}} */
|
||||
/* {{{ assert.c */
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_assert, 0, 0, 1)
|
||||
ZEND_ARG_INFO(0, assertion)
|
||||
ZEND_ARG_INFO(0, description)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_assert_options, 0, 0, 1)
|
||||
ZEND_ARG_INFO(0, what)
|
||||
ZEND_ARG_INFO(0, value)
|
||||
ZEND_END_ARG_INFO()
|
||||
/* }}} */
|
||||
/* {{{ browscap.c */
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_get_browser, 0, 0, 0)
|
||||
ZEND_ARG_INFO(0, browser_name)
|
||||
|
8
ext/standard/basic_functions.stub.php
Normal file → Executable file
8
ext/standard/basic_functions.stub.php
Normal file → Executable file
@ -389,3 +389,11 @@ function htmlentities(string $string, int $quote_style = ENT_COMPAT, ?string $en
|
||||
function get_html_translation_table(int $table = HTML_SPECIALCHARS, int $quote_style = ENT_COMPAT, string $encoding = "UTF-8"): array {}
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* assert.c */
|
||||
|
||||
/** @param mixed $assertion */
|
||||
function assert($assertion, $description = null): bool {}
|
||||
|
||||
/** @return int|string|bool|null */
|
||||
function assert_options(int $what, $value = UNKNOWN) {}
|
||||
|
10
ext/standard/basic_functions_arginfo.h
Normal file → Executable file
10
ext/standard/basic_functions_arginfo.h
Normal file → Executable file
@ -506,3 +506,13 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_html_translation_table, 0, 0
|
||||
ZEND_ARG_TYPE_INFO(0, quote_style, IS_LONG, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, encoding, IS_STRING, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_assert, 0, 1, _IS_BOOL, 0)
|
||||
ZEND_ARG_INFO(0, assertion)
|
||||
ZEND_ARG_INFO(0, description)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_assert_options, 0, 0, 1)
|
||||
ZEND_ARG_TYPE_INFO(0, what, IS_LONG, 0)
|
||||
ZEND_ARG_INFO(0, value)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
Loading…
Reference in New Issue
Block a user