note 69914 added to function.sqlite-close

From: Date: Tue, 26 Sep 2006 13:13:32 +0000
Subject: note 69914 added to function.sqlite-close
Groups: php.notes 
Request: Send a blank email to php-notes+get-117679@lists.php.net to get a copy of this message
There is a workaround for the sqlite_close bug, but it involves having a dummy sqlite file that you will never really use. If you run the following code: $dbhandle = sqlite_open("sqlite.db",0666,$sqlite_error); sqlite_close($dbhandle); $dbhandle = sqlite_open("dummy.db",0666); this will have, for no good reason really other than PHP symbol management, closed the original handle. Of course you can not rename or unlink "dummy.db" while your script runs, but then that's basically the whole point of the file anyway. ---- Server IP: 194.109.193.119 Probable Submitter: 213.10.28.9 ---- Manual Page -- http://www.php.net/manual/en/function.sqlite-close.php Edit -- https://master.php.net/note/edit/69914 Del: integrated -- https://master.php.net/note/delete/69914/integrated Del: useless -- https://master.php.net/note/delete/69914/useless Del: bad code -- https://master.php.net/note/delete/69914/bad+code Del: spam -- https://master.php.net/note/delete/69914/spam Del: non-english -- https://master.php.net/note/delete/69914/non-english Del: in docs -- https://master.php.net/note/delete/69914/in+docs Del: other reasons-- https://master.php.net/note/delete/69914 Reject -- https://master.php.net/note/reject/69914 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117679) next »