]> granicus.if.org Git - php/commitdiff
Fixed bug #53630 (Fixed parameter handling inside readline() function).
authorIlia Alshanetsky <iliaa@php.net>
Mon, 10 Jan 2011 18:19:02 +0000 (18:19 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 10 Jan 2011 18:19:02 +0000 (18:19 +0000)
NEWS
ext/readline/readline.c

diff --git a/NEWS b/NEWS
index 7c5cc199c4bfd1570011a8d93e06b4c637748ddd..dc80f7e5d85f576f374662368e079725eef9a9c5 100644 (file)
--- a/NEWS
+++ b/NEWS
 - PHP-FPM SAPI:
   . Fixed bug #53527 (php-fpm --test doesn't set a valuable return value). (fat)
 
+- Readline extension:
+  . Fixed bug #53630 (Fixed parameter handling inside readline() function).
+    (jo at feuersee dot de, Ilia)
+
 - SOAP extension:
   . Fixed possible crash introduced by the NULL poisoning patch.
     (Mateusz Kocielski, Pierre)
index 9bd443106e2e422566da651abdf0dd5d7a332fa0..e9901bf7a14d6eef978f08ec43fa570e99c6a6dc 100644 (file)
@@ -196,7 +196,7 @@ PHP_FUNCTION(readline)
        int prompt_len;
        char *result;
 
-       if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!", &prompt, &prompt_len)) {
+       if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!", &prompt, &prompt_len)) {
                RETURN_FALSE;
        }