#50170 [Opn->Bgs]: undefined function readline()
| From: | vrana@php.net | Date: | Fri, 13 Nov 2009 19:34:44 +0000 |
| Subject: | #50170 [Opn->Bgs]: undefined function readline() | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3114@lists.php.net to get a copy of this message | ||
ID: 50170
Updated by: vrana@php.net
Reported By: ramtsoft at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: windows xp sp3
PHP Version: 5.3.0
New Comment:
Readline must be properly installed as stated at
http://www.php.net/manual/en/readline.installation.php.
Previous Comments:
------------------------------------------------------------------------
[2009-11-13 19:02:18] ramtsoft at gmail dot com
Description:
------------
Fatal error: Call to undefined function readline() in ... on line 4
Reproduce code:
---------------
---
From manual page: function.readline#Examples
---
<?php
//get 3 commands from user
for ($i=0; $i < 3; $i++) {
$line = readline("Command: ");
readline_add_history($line);
}
//dump history
print_r(readline_list_history());
//dump variables
print_r(readline_info());
?>
Expected result:
----------------
Work!!!
Actual result:
--------------
Error
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50170&edit=1