#31796 [Opn->Csd]: readline() completes filesystem
ID: 31796
Updated by: iliaa@php.net
Reported By: david at acz dot org
-Status: Open
+Status: Closed
Bug Type: Readline related
Operating System: *
PHP Version: 4CVS, 5CVS (2005-02-03)
New Comment:
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
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-02-03 18:18:11] david at acz dot org
I am positive.
------------------------------------------------------------------------
[2005-02-03 16:33:22] wez@php.net
Are you sure your callback is being called?
------------------------------------------------------------------------
[2005-02-01 21:12:43] david at acz dot org
Description:
------------
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_completion_function("complete");
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31796&edit=1
Thread (6 messages)