mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/standard: change highlight_string()/print_r stub return type from string|bool to string|true (#14959)
* ext/standard: change `highlight_string()` return type from `string|bool` to `string|true` * ext/standard: change `print_r` return type from `string|bool` to `string|true`
This commit is contained in:
committed by
GitHub
parent
913157f71f
commit
673b4e890c
@@ -565,6 +565,8 @@ PHP 8.4 UPGRADE NOTES
|
||||
one digit.
|
||||
. output_add_rewrite_var() now uses url_rewriter.hosts instead of
|
||||
session.trans_sid_hosts for selecting hosts that will be rewritten.
|
||||
. highlight_string() now has a return type of string|true instead of string|bool.
|
||||
. print_r() now has a return type of string|true instead of string|bool.
|
||||
|
||||
========================================
|
||||
6. New Functions
|
||||
|
||||
@@ -456,11 +456,11 @@ static const func_info_t func_infos[] = {
|
||||
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("highlight_file", MAY_BE_STRING|MAY_BE_BOOL),
|
||||
F1("php_strip_whitespace", MAY_BE_STRING),
|
||||
F1("highlight_string", MAY_BE_STRING|MAY_BE_BOOL),
|
||||
F1("highlight_string", MAY_BE_STRING|MAY_BE_TRUE),
|
||||
F1("ini_get_all", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_STRING|MAY_BE_ARRAY_OF_STRING|MAY_BE_ARRAY_OF_ARRAY|MAY_BE_ARRAY_OF_NULL|MAY_BE_FALSE),
|
||||
F1("set_include_path", MAY_BE_STRING|MAY_BE_FALSE),
|
||||
F1("get_include_path", MAY_BE_STRING|MAY_BE_FALSE),
|
||||
F1("print_r", MAY_BE_STRING|MAY_BE_BOOL),
|
||||
F1("print_r", MAY_BE_STRING|MAY_BE_TRUE),
|
||||
#if defined(HAVE_GETSERVBYPORT)
|
||||
F1("getservbyport", MAY_BE_STRING|MAY_BE_FALSE),
|
||||
#endif
|
||||
|
||||
@@ -2024,7 +2024,7 @@ function show_source(string $filename, bool $return = false): string|bool {}
|
||||
function php_strip_whitespace(string $filename): string {}
|
||||
|
||||
/** @refcount 1 */
|
||||
function highlight_string(string $string, bool $return = false): string|bool {}
|
||||
function highlight_string(string $string, bool $return = false): string|true {}
|
||||
|
||||
function ini_get(string $option): string|false {}
|
||||
|
||||
@@ -2050,7 +2050,7 @@ function set_include_path(string $include_path): string|false {}
|
||||
function get_include_path(): string|false {}
|
||||
|
||||
/** @refcount 1 */
|
||||
function print_r(mixed $value, bool $return = false): string|bool {}
|
||||
function print_r(mixed $value, bool $return = false): string|true {}
|
||||
|
||||
function connection_aborted(): int {}
|
||||
|
||||
|
||||
6
ext/standard/basic_functions_arginfo.h
generated
6
ext/standard/basic_functions_arginfo.h
generated
@@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 298deeb590d17e5444ca0f76a65f63df9af5330c */
|
||||
* Stub hash: e3a7bf1e9f0df3e38f6280f91af70e54ce492a60 */
|
||||
|
||||
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)
|
||||
@@ -489,7 +489,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_php_strip_whitespace, 0, 1, IS_S
|
||||
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_highlight_string, 0, 1, MAY_BE_STRING|MAY_BE_BOOL)
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_highlight_string, 0, 1, MAY_BE_STRING|MAY_BE_TRUE)
|
||||
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
|
||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, return, _IS_BOOL, 0, "false")
|
||||
ZEND_END_ARG_INFO()
|
||||
@@ -524,7 +524,7 @@ ZEND_END_ARG_INFO()
|
||||
|
||||
#define arginfo_get_include_path arginfo_ob_get_flush
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_print_r, 0, 1, MAY_BE_STRING|MAY_BE_BOOL)
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_print_r, 0, 1, MAY_BE_STRING|MAY_BE_TRUE)
|
||||
ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
|
||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, return, _IS_BOOL, 0, "false")
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
Reference in New Issue
Block a user