]> granicus.if.org Git - php/commitdiff
Fixed bug #74489 readline() immediately returns false in interactive console mode
authorAnatol Belski <ab@php.net>
Sat, 22 Apr 2017 16:33:53 +0000 (18:33 +0200)
committerAnatol Belski <ab@php.net>
Sat, 22 Apr 2017 16:33:53 +0000 (18:33 +0200)
NEWS
ext/readline/readline.c

diff --git a/NEWS b/NEWS
index 02d5e0a734fd0fbf3573f982c735569170272841..faaf62ba81981432330ad2fdb84894263dd62d12 100644 (file)
--- 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)
index 53a4c9e9abf182dde70b2489b72ba563298f15df..564d5c053908b468eab793e812ce0e444f904ebc 100644 (file)
@@ -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;