From: Operating system: PHP version: 5.3.8 Package: Readline related Bug Type: Feature/Change Request Bug description:Expose additionnal readline variable to prevent default filename completion
Description: ------------ Actually, when using a custom completion function with readline_completion_function(), if this custom completion function does not find any match, it falls back to the default filename completion. In order to prevent this behaviour, the C API of readline provides a variable named "rl_attempted_completion_over". Defining this variable to a non-zero value disables the uses of the default filename completion. This variable is not exposed to PHP and the filename completion cannot be bypassed. The provided patch exposes this variable to PHP, and allows to use readline_info("attempted_completion_over", 1) in the PHP completion function to prevent default filename completion to occurs. There is a bug report but it s closed since 2005 https://bugs.php.net/bug.php?id=31796 Another bug report for this https://bugs.php.net/bug.php?id=48089 with a patch which does the job but in a wrong way, imo. -- Edit bug report at https://bugs.php.net/bug.php?id=55694&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55694&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55694&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55694&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55694&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55694&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55694&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55694&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55694&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55694&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55694&r=support Expected behavior: https://bugs.php.net/fix.php?id=55694&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55694&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55694&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55694&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55694&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55694&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55694&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55694&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55694&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55694&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55694&r=mysqlcfg