diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2021-01-07 13:49:02 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2021-01-07 13:49:02 +0100 |
commit | c5812389b8258fd8975a593a1b8e7f252d891cf8 (patch) | |
tree | 0496dc34fcd2b2cce8360eb622c060fa5ac603bb | |
parent | 7b2c098f87b39bc5bded30ad33c2af5ef26b86df (diff) | |
parent | 8ae02c8a9588b36e93da3ba88d32956323fc30d4 (diff) | |
download | php-git-c5812389b8258fd8975a593a1b8e7f252d891cf8.tar.gz |
Merge branch 'PHP-8.0'
* PHP-8.0:
Avoid modifying the return value of readline_completion_function()
-rw-r--r-- | ext/readline/readline.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c index ec1d1ff255..647eb0977f 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -448,6 +448,7 @@ char **php_readline_completion_cb(const char *text, int start, int end) if (call_user_function(NULL, NULL, &_readline_completion, &_readline_array, 3, params) == SUCCESS) { if (Z_TYPE(_readline_array) == IS_ARRAY) { + SEPARATE_ARRAY(&_readline_array); if (zend_hash_num_elements(Z_ARRVAL(_readline_array))) { matches = rl_completion_matches(text,_readline_command_generator); } else { |