ID: 48089 User updated by: wcandillon at gmail dot com Reported By: wcandillon at gmail dot com Status: Open Bug Type: Readline related Operating System: All PHP Version: 5.2.9 New Comment:
Here's the patch: 5c5 < | Copyright (c) 1997-2008 The PHP Group | --- > | Copyright (c) 1997-2009 The PHP Group | 19c19 < /* $Id: readline.c,v 1.42.2.3.2.8 2008/11/21 22:48:27 felipe Exp $ */ --- > /* $Id: readline.c,v 1.42.2.3.2.9 2008/12/31 11:17:42 sebastian Exp $ */ 50a51 > 134,135d134 < char* no_filename_completion_function(){ return 0; } < 250,263c249,250 < } else if (! strcasecmp(Z_STRVAL_PP(what), "autocomplete_files")) { < if (ac == 2 ) < { < //convert_to_bool_ex(value); < if(Z_BVAL_PP(value)) < { < rl_completion_entry_function = NULL; < } else { < rl_completion_entry_function = no_filename_completion_function; < } < RETVAL_BOOL(rl_completion_entry_function!=no_filename_completion_function); < } < } < } --- > } > } 399c386 < return ((char *)NULL); --- > return NULL; 436,437d422 < //reinit the appended char < rl_completion_append_character = ' '; 443c428 < if (Z_TYPE(_readline_array) == IS_ARRAY ) { --- > if (Z_TYPE(_readline_array) == IS_ARRAY) { 447,448d431 < //set the char to null < rl_completion_append_character = '\0'; Previous Comments: ------------------------------------------------------------------------ [2009-04-27 13:41:02] wcandillon at gmail dot com Description: ------------ This patch provides a new mean to mask filesystem autocompletion: readline_info('autocomplete_files', false); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48089&edit=1