sqlite temp directory

php.internals

Michael Spector

21 years ago
Hi, It looks like libsqlite uses global variable 'sqlite_temp_directory' for storing the path to temporary directory. It would be very useful, if there was a PHP.ini entry named like: "sqlite.temp_directory" setting this variable, since there are cases where user environment doesn't allow to every user writting to /tmp, /usr/tmp, /var/tmp or to current directory, or another temporary directory is used. In such cases, these users usually get this warning: <b>Warning</b>: sqlite_open(): unable to open a temporary database file for storing temporary tables in <b>.... Thanks.
-- Best regards, Michael

Derick Rethans

21 years ago
On Sun, 5 Sep 2004, Michael Spector wrote:
> It looks like libsqlite uses global variable 'sqlite_temp_directory' > for storing the path to temporary directory. It would be very useful, > if there was a PHP.ini entry named like: "sqlite.temp_directory" setting this > variable, since there are cases where user environment doesn't allow to > every user writting to /tmp, /usr/tmp, /var/tmp or to current directory, > or another temporary directory is used. In such cases, these users > usually get this warning: > > <b>Warning</b>: sqlite_open(): unable to open a temporary database file > for storing temporary tables in <b>....
Please file this as a feature request in our bug system. regards, Derick
-- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

Andi Gutmans

21 years ago
Yeah I think that's a good idea. The only thing I'm not sure about is if we should unify tmp configuration for all extensions. My first instinct would be yes but from looking at php.ini ;upload_tmp_dir = ;session.save_path = "/tmp" soap.wsdl_cache_dir="/tmp" People might want to put these things into different directories so maybe the answer is no :) Do you have a patch which implements this? Andi At 06:29 PM 9/5/2004 +0300, Michael Spector wrote: