note 104182 modified in function.readline by hholzgra

From: Date: Thu, 02 Aug 2012 12:44:22 +0000
Subject: note 104182 modified in function.readline by hholzgra
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189691@lists.php.net to get a copy of this message
Calling readline() always enables filename autocompletion even if not requested. It does so by looking for files in the current working directory.

EDIT: if you don't want/need this then register your own completion function using http://php.net/manual/en/readline-completion-function

 --was-- Calling readline() always enables filename autocompletion even if not requested. It does so by looking for files in the current working directory. This current working directory can be changed with the chdir() function. But I don't know if there is any way to disable filename autocompletion other than set the current working directory to an empty directory. http://php.net/manual/en/function.readline.php

« previous php.notes (#189691) next »