mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Fix return type of error_get_last()
Since GH-17056, the result may return the backtrace array. Closes GH-17641
This commit is contained in:
parent
5052b325fe
commit
47b7779329
3 changed files with 3 additions and 3 deletions
|
@ -429,7 +429,7 @@ static const func_info_t func_infos[] = {
|
|||
#endif
|
||||
F1("get_current_user", MAY_BE_STRING),
|
||||
FN("get_cfg_var", MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_KEY_STRING|MAY_BE_ARRAY_OF_STRING|MAY_BE_ARRAY_OF_ARRAY|MAY_BE_FALSE),
|
||||
F1("error_get_last", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_STRING|MAY_BE_ARRAY_OF_LONG|MAY_BE_ARRAY_OF_STRING|MAY_BE_NULL),
|
||||
F1("error_get_last", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_STRING|MAY_BE_ARRAY_OF_LONG|MAY_BE_ARRAY_OF_STRING|MAY_BE_ARRAY_OF_ARRAY|MAY_BE_NULL),
|
||||
F1("highlight_file", MAY_BE_STRING|MAY_BE_BOOL),
|
||||
F1("php_strip_whitespace", MAY_BE_STRING),
|
||||
F1("highlight_string", MAY_BE_STRING|MAY_BE_TRUE),
|
||||
|
|
|
@ -1977,7 +1977,7 @@ function get_cfg_var(string $option): string|array|false {}
|
|||
function error_log(string $message, int $message_type = 0, ?string $destination = null, ?string $additional_headers = null): bool {}
|
||||
|
||||
/**
|
||||
* @return array<string, int|string>|null
|
||||
* @return array<string, int|string|array>|null
|
||||
* @refcount 1
|
||||
*/
|
||||
function error_get_last(): ?array {}
|
||||
|
|
2
ext/standard/basic_functions_arginfo.h
generated
2
ext/standard/basic_functions_arginfo.h
generated
|
@ -1,5 +1,5 @@
|
|||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: b0a0ccc94c6db2831f7f0b8e67562cd6a734fcdf */
|
||||
* Stub hash: 85677dc3476d25b7820fd3a26fe39f2e9378b6e7 */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue