Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -615,11 +615,18 @@ PHP 8.6 UPGRADE NOTES
returned.

- Standard:
. header_register_callback() now declares true as its return type. It has not
been able to return false since PHP 8.0.0, where passing an invalid
callback started throwing a TypeError instead.
. ini_get_all() now includes a "builtin_default_value" element for each
directive when $details is true. It holds the built-in default value of the
directive (or null if it has none), independent of values set in php.ini,
on the command line, or at runtime.

- Zip:
. zip_entry_close() return type has been narrowed from bool to true. The
function already always returned true.

========================================
6. New Functions
========================================
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/basic_functions.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@ function set_time_limit(int $seconds): bool {}

/* main/SAPI.c */

function header_register_callback(callable $callback): bool {}
function header_register_callback(callable $callback): true {}

/* main/output.c */

Expand Down
4 changes: 2 additions & 2 deletions ext/standard/basic_functions_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ext/standard/basic_functions_decl.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.