diff options
author | Anatol Belski <ab@php.net> | 2017-04-22 18:33:53 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-04-22 18:33:53 +0200 |
commit | 000fe3aacce427eba082f12610b3b50f025b5e6a (patch) | |
tree | 4ef7767ed34215d6b74515b22f07dfda28694a7b | |
parent | aa0a2e8c58f59d8a717c455ff23fcb22641f5746 (diff) | |
download | php-git-000fe3aacce427eba082f12610b3b50f025b5e6a.tar.gz |
Fixed bug #74489 readline() immediately returns false in interactive console mode
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | ext/readline/readline.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -56,6 +56,10 @@ PHP NEWS . Fixed bug #74383 (phar method parameters reflection correction). (mhagstrand) +- Readline: + . Fixed bug #74489 (readline() immediately returns false in interactive + console mode). (Anatol) + - Standard: . Fixed bug #72071 (setcookie allows max-age to be negative). (Craig Duncan) . Fixed bug #74361 (Compaction in array_rand() violates COW). (Nikita) diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 53a4c9e9ab..564d5c0539 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -214,7 +214,7 @@ PHP_MINFO_FUNCTION(readline) Reads a line */ PHP_FUNCTION(readline) { - char *prompt = NULL; + char *prompt = ""; size_t prompt_len; char *result; |