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
5 changes: 4 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? ????, PHP 8.6.0beta2
?? ??? ????, PHP 8.6.0beta3


27 Aug 2026, PHP 8.6.0beta2

- Core:
. Fixed bug GH-15375 (Nested "yield from" skips items after a valid() or
Expand Down
9 changes: 9 additions & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,12 @@ PHP 8.6 UPGRADE NOTES
- Phar:
. Phar::mungServer() now supports reference values.

- Readline:
. readline_completion_function() now declares true as its return type. The
function assigns a static callback and then tests whether the assignment
landed, which is a tautology; an invalid callback throws a TypeError via
ZPP before the function body is reached.

- Sockets:
. socket_addrinfo_lookup() now has an additional optional argument $error
when not null, and on failure, gives the error code (one of the EAI_*
Expand All @@ -664,6 +670,9 @@ PHP 8.6 UPGRADE NOTES
. 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.
. register_tick_function() now declares true as its return type. It has
always returned true on success; an invalid callback throws a TypeError
via ZPP before the function body is reached.
. 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,
Expand Down
4 changes: 2 additions & 2 deletions ext/readline/readline.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,8 @@ PHP_FUNCTION(readline_completion_function)

/* NOTE: The rl_attempted_completion_function variable (and others) are part of the readline library, not php */
rl_attempted_completion_function = php_readline_completion_cb;
RETURN_BOOL(rl_attempted_completion_function != NULL);

RETURN_TRUE;
}

/* }}} */
Expand Down
2 changes: 1 addition & 1 deletion ext/readline/readline.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function readline_read_history(?string $filename = null): bool {}

function readline_write_history(?string $filename = null): bool {}

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


#ifdef HAVE_RL_CALLBACK_READ_CHAR
Expand Down
4 changes: 2 additions & 2 deletions ext/readline/readline_arginfo.h

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

2 changes: 1 addition & 1 deletion ext/standard/basic_functions.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -2063,7 +2063,7 @@ function getprotobyname(string $protocol): int|false {}
function getprotobynumber(int $protocol): string|false {}
#endif

function register_tick_function(callable $callback, mixed ...$args): bool {}
function register_tick_function(callable $callback, mixed ...$args): true {}

function unregister_tick_function(callable $callback): void {}

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.

Loading