Improve cleanup

The persistent connection locks the file which might prevent deletion.
This commit is contained in:
Anatol Belski 2018-08-03 07:08:53 +02:00
parent 19592519c2
commit 41c69766a4

View File

@ -12,7 +12,11 @@ function _test() { return 42; }
$db->sqliteCreateFunction('test', '_test', 0);
print("Everything is fine, no exceptions here\n");
unset($db);
@unlink($dbfile);
?>
--CLEAN--
<?php
$dbfile = __DIR__ . '/test.sqlite';
unlink($dbfile);
?>
--EXPECT--
Everything is fine, no exceptions here