com php-src: Fixed bug #74489 readline() immediately returns false in interactive console mode: NEWS ext/readline/readline.c
[email protected] (Anatol Belski)
| Newsgroups | php.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit: 000fe3aacce427eba082f12610b3b50f025b5e6a Author: Anatol Belski <[email protected]> Sat, 22 Apr 2017 18:33:53 +0200 Parents: aa0a2e8c58f59d8a717c455ff23fcb22641f5746 Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=000fe3aacce427eba082f12610b3b50f025b5e6a Log: Fixed bug #74489 readline() immediately returns false in interactive console mode Bugs: https://bugs.php.net/74489 Changed paths: M NEWS M ext/readline/readline.c Diff: diff --git a/NEWS b/NEWS index 02d5e0a..faaf62b 100644 --- a/NEWS +++ b/NEWS @@ -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 53a4c9e..564d5c0 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;