summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-08-03 07:08:53 +0200
committerAnatol Belski <ab@php.net>2018-08-03 07:08:53 +0200
commit41c69766a4bcbd74779379129964cf0bf26b4217 (patch)
tree9a8c33110b13b20d0457e6a9a96646941105bc74
parent19592519c2803a42762e8fee18505083dc3474fc (diff)
downloadphp-git-41c69766a4bcbd74779379129964cf0bf26b4217.tar.gz
Improve cleanup
The persistent connection locks the file which might prevent deletion.
-rw-r--r--ext/pdo_sqlite/tests/bug70221.phpt6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/pdo_sqlite/tests/bug70221.phpt b/ext/pdo_sqlite/tests/bug70221.phpt
index 2d1aea0e8b..aa9d4ee8e2 100644
--- a/ext/pdo_sqlite/tests/bug70221.phpt
+++ b/ext/pdo_sqlite/tests/bug70221.phpt
@@ -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