php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64980 readline example doc incorrect
Submitted: 2013-06-06 17:46 UTC Modified: 2013-06-12 19:09 UTC
From: gamerscomplete at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gamerscomplete at gmail dot com
New email:
PHP Version: OS:

 

 [2013-06-06 17:46 UTC] gamerscomplete at gmail dot com
Description:
------------
Command is listed as "readline_list_history()" when the actual command is 
"readline_read_history()" in the example text at 
http://us2.php.net/manual/en/function.readline.php

"
//dump history
print_r(readline_list_history());
"




---
From manual page: http://www.php.net/function.readline#refsect1-
function.readline-examples
---



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-12 19:09 UTC] aharvey@php.net
-Status: Open +Status: Not a bug
 [2013-06-12 19:09 UTC] aharvey@php.net
readline_list_history() appears to be correct — readline_read_history() loads a 
history file, which isn't what the example demonstrates.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Sep 20 06:00:01 2025 UTC