Skip to content

Commit 41c6976

Browse files
committed
Improve cleanup
The persistent connection locks the file which might prevent deletion.
1 parent 1959251 commit 41c6976

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ext/pdo_sqlite/tests/bug70221.phpt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ function _test() { return 42; }
1212
$db->sqliteCreateFunction('test', '_test', 0);
1313
print("Everything is fine, no exceptions here\n");
1414
unset($db);
15-
@unlink($dbfile);
15+
?>
16+
--CLEAN--
17+
<?php
18+
$dbfile = __DIR__ . '/test.sqlite';
19+
unlink($dbfile);
1620
?>
1721
--EXPECT--
1822
Everything is fine, no exceptions here

0 commit comments

Comments
 (0)