Skip to content

Commit 5ee0f35

Browse files
committed
ext/standard: change print_r return type from string|bool to string|true
1 parent d34722b commit 5ee0f35

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

UPGRADING

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ PHP 8.4 UPGRADE NOTES
566566
. output_add_rewrite_var() now uses url_rewriter.hosts instead of
567567
session.trans_sid_hosts for selecting hosts that will be rewritten.
568568
. highlight_string() now has a return type of string|true instead of string|bool.
569+
. print_r() now has a return type of string|true instead of string|bool.
569570

570571
========================================
571572
6. New Functions

Zend/Optimizer/zend_func_infos.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ static const func_info_t func_infos[] = {
460460
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),
461461
F1("set_include_path", MAY_BE_STRING|MAY_BE_FALSE),
462462
F1("get_include_path", MAY_BE_STRING|MAY_BE_FALSE),
463-
F1("print_r", MAY_BE_STRING|MAY_BE_BOOL),
463+
F1("print_r", MAY_BE_STRING|MAY_BE_TRUE),
464464
#if defined(HAVE_GETSERVBYPORT)
465465
F1("getservbyport", MAY_BE_STRING|MAY_BE_FALSE),
466466
#endif

ext/standard/basic_functions.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2050,7 +2050,7 @@ function set_include_path(string $include_path): string|false {}
20502050
function get_include_path(): string|false {}
20512051

20522052
/** @refcount 1 */
2053-
function print_r(mixed $value, bool $return = false): string|bool {}
2053+
function print_r(mixed $value, bool $return = false): string|true {}
20542054

20552055
function connection_aborted(): int {}
20562056

ext/standard/basic_functions_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)