Skip to content
Open
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
6 changes: 6 additions & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,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 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.

Loading