Skip to content

Commit 9d3246d

Browse files
committed
ext/standard: change print_r return type from string|bool to string|true
1 parent af89eb3 commit 9d3246d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
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

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)