summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-04-22 18:33:53 +0200
committerAnatol Belski <ab@php.net>2017-04-22 18:33:53 +0200
commit000fe3aacce427eba082f12610b3b50f025b5e6a (patch)
tree4ef7767ed34215d6b74515b22f07dfda28694a7b
parentaa0a2e8c58f59d8a717c455ff23fcb22641f5746 (diff)
downloadphp-git-000fe3aacce427eba082f12610b3b50f025b5e6a.tar.gz
Fixed bug #74489 readline() immediately returns false in interactive console mode
-rw-r--r--NEWS4
-rw-r--r--ext/readline/readline.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 02d5e0a734..faaf62ba81 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 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;