|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31796 readline() completes filesystem
Submitted: 2005-02-01 21:12 UTC Modified: 2005-02-03 23:47 UTC
From: david at acz dot org Assigned:
Status: Closed Package: Readline related
PHP Version: 4CVS, 5CVS (2005-02-03) OS: *
Private report: No CVE-ID: None
 [2005-02-01 21:12 UTC] david at acz dot org
The readline() function always tab completes the filesystem even if a custom completion function is used.  This behavior is undocumented and undesirable in some applications.

Reproduce code:
    readline("> ");

    function complete($line, $pos, $cursor)
        return array();

Expected result:
I expect nothing to happen when I press tab.

Actual result:
The filesystem is completed as with bash.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-03 16:33 UTC]
Are you sure your callback is being called?
 [2005-02-03 18:18 UTC] david at acz dot org
I am positive.
 [2005-02-03 23:47 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 24 08:01:31 2024 UTC